GregMoser's Q&A profile
Software Development for Windows Vista GetVersionEx weirdness on Vista. Please help
I am calling GetVersionEx to get the windows version. I am using code sample provided at http://www.codeproject.com/win32/osdetect.asp . On WindowsXP it correctly returns 5 as the major version. But on Windows Vista, it returns 5 again instead of 6. Has anyone see this issue or any ideas why GetVersionEx returns incorrect value on Vista So far I have tried compiling with different settings of _WIN32_WINNT, reinstalled Vista just to be sure, tried to run this on a different Vista system with the same incorrect result. I also tried GetVersion instead of GetVersionEx too without success. Should I check for some registry keys or something I am stuck on this for more than a day now. Appreciate any help. Thanks. ...Show All
Visual Basic Beginners question.
Hi, when I use the HelloWorld example from the interop forms toolkit, everything is fine except if I try to add a new Public Sub. 1) E.g. I add the following code (while VB6 IDE is closed): in class HelloWorldForm after # Region "Public Methods" : <InteropFormMethod()> _ Public Sub newPosition( ByVal x As Integer , ByVal y As Integer ) Me .Left = x Me .Top = y End Sub 2) I open the vb6 IDE and start the main app. I press the "launch .NET form" button and see a modified .NET form, because I modified the form earlier in the .NET environment. 3) But if I edit the vb6 code re browse the objects in the object browser, I can not see the new Public Sub. What is the reason that ...Show All
Windows Forms Drag and Drop between my application and windows explorer
Hello Gurus, I have an application developed in C# ,drag and drop option implemented within the appication. In fact, I am able to drag the files from external windows explorer and drop em on my application. Now I want to drag the files from my application and drop em on external windows explorer or desktop and my application should be able to copy them. Could you please give me some suggestions or sample code that does similar thing BTW, I am using Visual Studio.NET 2003 version. Thanks, Sathish Kumar Yeah I have given it a shot and it works at first. It's just not consistent for some reason. I remeber I had this one iSpy, or something, tol for visual studio that generated a list of ...Show All
Visual Studio Team System CTP5: Import Schema from remote database causes VS crash
The above problem was reported here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=686554&SiteID=1 and I reported it at Microsoft Connect here: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=207714 I have had no reply to the Connect posting. My project team are currently assessing whether we push on with using VSTS4DBP (and VSTS in general) and my superiors are reluctant to commit to it as an enterprise*-wide recommendation whilst this glaring bug is in it. If I am to persuade them that VSTS is the way to go then I need to show them that this has been fixed. Please can someone tell me whether it has been fixed in CTP6 Thanks Jamie * Note that the enterpr ...Show All
Silverlight (formerly WPF/E) Add the WPF/E browser enhancement as part of the Windows Update as soon as possible
I apologize in advance – I am sure this question has been answered somewhere. One of the strong advantages of Flash is that it is installed on so many machines. I think WPF/E is great (I just don’t know why it took Microsoft so long to get to this point); however, the WPF/E browser enhancement is installed on very few machines which means that if I use WPF/E my customers are going to be reluctant to download the WPF/E enhancement which is a real problem. The solution is to make WPF/E a Windows Update item which means it will get installed on a large number of machines and I can be competitive with Flash. I realize that Microsoft is at CTP; however, I feel that it is urgent that Microsoft start adding the WPF ...Show All
.NET Development "Remote server error: (403) forbidden" after using the Activator.GetObject() method.
Hello! I'm developing an aspnet remoting (using C#) for the first time and facing some unexpected issues. There are four projects in my solution (VS2005, framework 2.0) A business layer (classlibrary) An interface component - to interact with the business layer (classlibrary) A WebApplication - where I've placed my aspx that interacts with the interface component. A console application (to open the remoting channel). Here is what I'm doing, r espectively : ... using InterfaceRemoting; namespace Negocio { public class Client : MarshalByRefObject, InterfaceRemoting.IClient { public Client() { ...Show All
Visual C# handling another process?
hi how can i handle another process from my program to minimize or maximize process window for example : when i create a program with c# how can i make it minimize the windows media player application that it is already running also how can i attach a process to another so that when the first run the other also run ,for example when someone run the windows media player i need my appliction to run automatically with it thanks for help Hi I suggest you use the following SDK functions: FindWindow / FindWindowEx to find the window you are looking for. SetWindowPlacement to set the position and size of the window. As for running your application once the Windows Media Player is launched, I s ...Show All
Smart Device Development USB Port
Please suggest me how can I write applications for USB and Irda drivers. How can I open the USB/Irda ports, and read/write to/from the ports. Hi, I am not absolutely sure, but I suppose that if you keep open all time USB/irda/wifi/bluetooth connections, it would lead you to batery power disaster. Nonetheless, do not mix usb interface with bluetooth or wifi, for example. They are different types of interfaces that use different adapters for communication. Only general thing is that all radiomodems can be accessed through COM ports. According to ActiveSync, in RAPI has enum RAPI_CONNECTIONTYPE defined like this: typedef enum { RAPI_CONNECTION_USB = 0 RAPI_CONNECTION_IR ...Show All
Visual Studio crystalreportviewer toolbar images missing
I've seen a few posts here about this pesky problem but none of them solve my exact problem. I have a VS2005 web project with a crystalreportviewer control in it. If I run it locally, I get all of the crystal navigation images (next, prev, etc.). But when I copy/paste deploy to another webserver the images are missing. Here's what I've tried: 1. Made a setup project that included Crystal as a "prerequisite". Deployed from a setup.exe and everything worked but the images were still missing. 2. Found the path to the missing images in the browser view source, then made a folder in my web project to mimic it (e.g., /aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/images/toolbar/). Copy deployed and this didn' ...Show All
SQL Server filter one one dataset with values in another dataset?
Hi, I have two datasets in my report, D1 and D2. D1 is a list of classes with classid and title D2 is a list of data. each row in D2 has a classid. D2 may or may not have all the classids in D1. all classids in D2 must be in D1. I want to show fields in D2 and group the data with classids in D1 and show every group as a seperate table. If no data in D2 is available for a classid, It shows a empty table. Is there any way to do this in RS2005 Put everything together in one single dataset, group by classid. Use a left inner joing for the dataset. It's a little technical but it can be done. ...Show All
Visual Basic Record/Play voice.
I am trying to create a simple sound recorder for Windows application. Is there a class or engine where I can use it to record and play voice through microphone Thanks Thanks! Totally forgot about my.computer. Thanks again for reminding me.. =) Now I need to find a way to record to .wav ...Show All
Visual C++ Stepping through VC8 SP1's debug CRT ? PDB File available?
For years I have used older versions of MSVC and their "debug" C run time DLLs, e.g. MSVCRTD.DLL . I was able to step through the code in the debug CRL DLLs. This past week, I installed MSVC 2005 Express Edition, SP1. Now it seems that I can no longer step through any of the CRT functions. It seems I need a PDB file for MSVCR80D.DLL and I don't have one. So, can you tell me how to get the PDB file, or how to step through SP1's MSVCR80D.DLL functions >> how to step through SP1's MSVCR80D.DLL functions I am running VC8 SP1 Pro so I don't know how much of this applies: Start by confirming that you have the source code for the crt. On my machine this is at: C:\Program Files\Microsoft Visual Studio 8\VC\crt\sr ...Show All
.NET Development no possible set assembly name during serialization (no deserialization)
Hi all, I have a problem I have used a software for protect my program ,I have used http://www.geocities.com/krishnapg/SecureAssembly.html this software but i have a problem and i'm not an expert of serialization ,my software is not embedded in a c++ cover is good but if a use this software for protect my object serilized get a strange name ,Ii have attempt using a custom binder to change assembly name during the serialization process but the result is version=1.0.2435.36642 and I attempt to set 0.0.0.0. when the embedded application load the object dont find the assembly wich have this version, I ask if is possible custom serialization also when serialize and not only when deserialize,I hope this is not a stupid questio ...Show All
Windows Forms Problem with sequential processing
This is a VB.NET 2.0 question. After a button is clicked on my form, I have a series of subroutines that fire in sequential order ( they are called StepOne(), StepTwo() ... StepNine() ). After each sub completes, a label on the main form should become visible to indicate that step is complete ( lblStep1, lblStep2 ... lblStep9 ). My problem is that the labels are all appearing after the final step is complete, instead of one at a time. I know that most of these steps take enough time that I would see the step labels appear one at a time. Any advice would be helpful (within the 2.0 framework - the project constraints prevent me from using the 3.0 WinWF). Hi jwerner You need to put an Application ...Show All
SQL Server Data transfer from ODBC to Sql Server
Hi Can Anybody tell me the different ways of transfering data from ODBC Layer to SQL Server using C#. I want to transfer using Threads,means by running 4 threads, I need to transfer 4 tables at a time. Though we have SQLBulk copy Object in .NET it's not useful in multi threader env. Can anybody help me in this. My Vizai wrote: Thanks for the reply Duane . I'm also looking for that , how to . There are probably several ways to do it. One way is to implement a call back when a row is inserted. There would need to be a sql server trigger that fires each time a row is inserted. The call back would notify the client each time the trigger fires. Exactly how you would structure the call back is up t ...Show All
