Retrace's Q&A profile
Visual C++ Application hangs, when I click on some controls on the ActiveX
Hi, I will be displaying on C# activeX control on one VC++ 6.0 Client. In the C# activeX control, I will be adding one more VC++ 6.0 developed activex control for the System.Windows.Forms.UserControl. Here the display and all is fine. When I click on some buttons (belogs VC++ 6.0 developed activeX control), it is working fine also. But, when I click on some buttons(belogs VC++ 6.0 developed activeX control) like it is hanging. The stack is as shown below CWnd::GetTopWindow() line 257 + 23 bytes _AfxNextControl(CWnd * 0x0012f5f4 {CDTMGUICtrlWnd hWnd= }, CWnd * 0x00000000 {CWnd hWnd= }, unsigned int 0) line 90 + 8 bytes _AfxNe ...Show All
.NET Development OleDBCommand: what might be the problem?
Sorry you all if I bother you lately. I'm new to c# that's why I look out for assisatance often. I'm trying to insert user name and password into an access database through a create button. However, anytime I click on the create button there is an exception which suggests that there is a problem with my sql insert statements. I need help to ascertain what the problem is and how I can rectify that problem. private void btnCreate_Click( object sender, System.EventArgs e) { OleDbConnection sgConn = null ; string sgConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;"+"Data Source= C:\\Documents and Set ...Show All
Visual C# problem with method parameters....
I a calling an API method which requires passing the reference to an array as parameter. The problem is with that parameter The actual function is BOOL __stdcall G3BlockScan(int hRadio, DWORD *Freqs , int Count,int StopSquelchRaw, DWORD FeedbackTime,HWND WinHandle,DWORD Msg); Here Freqs is an array whose contents are mofied by the The API function call. I have wrapped this function in C# as follows.. [DllImport("wrg303api.dll")] public static extern bool G3BlockScan(int hRadio, uint [] Freqs , int Count,int StopSquelchRaw,uint FeedbackTime,IntPtr WinHandle,uint Msg); and the function call is like this ..... ..... some code..... ...Show All
SQL Server SQL 2000 Publisher and SQL 2005 Suscriber
Where can I found information on how its works and how to do it I tried to do it but I always received an error message Check out the following topic in SQL 2005 BOL: Using Multiple Versions of SQL Server in a Replication Topology (ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/rpldata9/html/45154b65-b46f-4aad-82e4-261376a7e9d4.htm) The general rule of thumb for replication topologies involving multiple versions of SQL Server is the following (with a couple exceptions): SQL Server Version of Distributor >= SQL Server Version of Publisher >= SQL Server Version of Subscriber. If you are using a m ...Show All
SQL Server help in sqlserver
Hello. I am using Microsoft SQL Server Management Studio (SQL Server 2005). When I select a date column from a table, the date is displayed in "mm/dd/yyyy hh:mm:ss" format. Is there a way i can change this date format so that it shows "dd/mm/yyyy hh:mm:ss" permanently Thanks. That's a client application is responsible for showing the date. So the question is where do you want to see dates in this format ...Show All
Windows Forms Application Failed - Invalid Manifest
This is the first time I have actually used the Publish... function in VS .NET 2005 Beta 2, so maybe I am missing something obvious... I do the publish, and everything comes out fine, except for two warnings: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets : warning : Could not find resources for culture 'en-US'. Using culture 'en' instead. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets : warning : Could not match culture 'en-US' for item '.NET Framework 2.0 Beta'. Using culture 'en' instead. These actually seem pretty harmless though... I then copy the entire folder the solution was publis ...Show All
Windows Forms ** Urgent ** - Time
I have a statusbar1.panel(0).text that displays minutes in string form. Could someone explain how i can convert these minutes into hours and then display in the same place. Many Thanks. Petang Many thanks for your time Omlet, Code is as follows:-Dim idays as single 'Gets how many days time span should be added idays2 = Val(TextBox2.Text) 'Using two datetimepickers  ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectSound Capture problem
I also had problems using managed directsound, when I added reference to Microsoft.DirectX.DirectSound I can play sound without problems, but there is problem capturing sound. The example in C# works fine but when I do the same in C++ there is a System.Exception: Message "Object reference not set to an instance of an object." Source "Microsoft.DirectX.DirectSound" StackTrace " at Microsoft.DirectX.DirectSound.Notify..ctor(CaptureBuffer lp) at CaptureVoice.InitNotifications() in c:\my documents\visual studio projects\capturevoice.cpp:line 84" I'm using MS Visual studio .Net 2003 and DirectX SDK ...Show All
Visual C# how to get the PC-Name from connected PC's
Hi @all, I ping the whole network (192.168.2.1 - 192.168.2.254) and return all IP-Adresses who returns the Ping-Request. The result is a list with the IP-Adress, but not with the PC-Name How can I get the Name of the other PC's from my Network thanks for your fast help Nikolai Hi Nikolai, The System.Net.Dns class's GetHostByAddress method will help you there. ...Show All
Visual Studio 2008 (Pre-release) Loose XAML files with custom controls
I have an application that will load loose XAML files with no code behind but with custom controls defined in a separate DLL. The XAML files and the DLL are not in the application's project . It's working fine when using XAMLReader but when I try to load them in a Frame by using Hyperlinks the application complains that the tags are not recognized - probably the DLL is not loaded. Is is possible to do this I believe when you reference a XAML via Frame.Source, SandboxExternalContent is "true" by default. This means a new PresentationHost instance handles it. You can set that to "false" and then declare the c ...Show All
.NET Development Can I have WSDL.EXE /SHARETYPE feature within VS 2005 IDE?
Hi, Can I have WSDL.EXE /SHARETYPE feature within VS 2005 IDE Thank you, Alan ...Show All
.NET Development Thread.Abort fixed for finally blocks?
In .NET Framework 1.0 & 1.1, calling Thread.Abort on another thread could abort that thread while executing the "finally" part of a try/catch/finally block. That was rather nasty because it could lead to criticial resources not being released by the aborted thread. Now I see in the July CTP docs that this situation is documented as a possibility for 1.0 & 1.1 only. May be assume that this has been fixed in 2.0, and that all finally blocks will properly execute in the aborted thread, no matter when the ThreadAbortException happens Another question: ThreadAbortException can still happen in a catch block and abort the current exception ...Show All
Visual Studio Express Editions Console App won't run, getting error about "application configuration is incorrect"
Hello, I have a console app created using C++ 2005 Express. I now need to copy it to another machine to use it but it won't run. I have already copied the msvcr80.dll in with the executable but still does not work. I have also try copying in the manifest but this has no effect. What do I need to do to get my console app to run on another machine Thank you for your help, Jonathan Caves - MSFT wrote: If you want to create a simple program that does not require any other files then you can still statically link to the C and C++ runtime. To use the static libraries you need to go to Prop ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where can I get volume textures?
Does anybody know where I could find some free volume textures to play around with Nico I thought of shooting lots of rays and intersecting it with an arbitrary mesh (or meshes). The DXIntersect() method is probably quite convenient for doing that. You can find out what's inside and what's outside by simply counting the hits... The user could specify the volume texture resolution. Also I like the user to be able to specify what will be inside the volume via a kind of bounding box that can be resized and rotated. Will try that when I have some free time. There are so many other things todo right ...Show All
Visual C++ VC++ 2005 redistributable (vcredist_x86.exe etc.)
Hi there, I noticed that the Beta 2 redistributable is hosted on the Microsoft download library, but the final ones seems not to be. Will it be hosted on microsoft.com (or is it already somewhere ). Also, it has been reported to me that on Windows 2000 the (RTM) redistributal gives an unuseful error message if Windows Installer 3.1 is not installed. The message is error 1723. "A DLL required for this install to complete could not be run." . It would be a lot more helpful to my users if this was a more informative error message - the solution of installing Windows Installer 3.1 was only found by trial and error. Thanks. ...Show All
