DavidDo's Q&A profile
Visual C++ Designing OCX
Hello All, I am designing an ocx control in vc++ 6.in this class i want to write a member function which calls functions in dll files. I just tried the thing but when i am adding the ocx control to my application in vb.net its giving error as self registration failed. How can i solve this problem ,Please help me. Hello Re: Designing OCX Questions on VC++6.0 are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups . OTP Thanks Damien ...Show All
Visual Basic Debbugging designer generated code
Hi I'm having problems with adding an imagelist to a form. whenever i do the form crashes at runtime. I've narrowed it down to a couple of lines in the designer code but would like to single step through the code. is there a way Thanks Mike Pooley What are the lines of code that you narrowed down to Were you able to actually step to each line of code, or did your Initialize Component run after stopping in it (without stepping ) thanks, ...Show All
Visual Studio 2008 (Pre-release) exception when closing window in button event handler, only when using keyboard
I ran into an interesting problem, could this be a bug in the Windows.Interop layer In short, I run a win32 app, where a WPF window is opened from managed C++ code. The window has an OK button: <Button Name="okButton">OK</Button> okButton.Click is handled in the C# window implementation, and forwarded to another handler in the managed C++ code, where the window is eventually closed (using Window.Close()). This works nicely, as long as I'm using the mouse to hit the "OK" button. But, when I tab to the button, and hit return, a Win32Exception is thrown after the C# event handler returns (at which point the window is already closed): System.ComponentModel.Win32Exception occurred Message="Invalid win ...Show All
Visual C# ds.ReaXml(); in portuguese ???
Hi, I'm trying to read this XML( http://www.wunderground.com/auto/rss_full/global/stations/83780.xml units=both )in portuguese is there a way to do that (Web Application) When I open it in IE I read it in portuguese, but when I query it through .net it returns in english... Thanks WebClient Webbie = new WebClient(); String Url = "http://www.wunderground.com/auto/rss_full/global/stations/83780.xml units=both"; Webbie.Headers.Add("Content-Language", "pt-br"); // I don't know if this is the right header as I didn't packet sniff . but this shows how to set it. Stream Streams = Webbie.OpenRead(Url); DataSet Dessie = new DataSet(); Dessie. ...Show All
Visual C++ SelectPrinter Method
Hi, I have been trying to implement a solution that will allow me to programtically set the printer that my document is printed too. I have seen and looked at this article. http://support.microsoft.com/kb/193103 and http://support.microsoft.com/kb/166129/ Neither of these worked for me I got Error reading memory location or Error writing memory location errors. There doesnt seem to be a lot of sample code out there for doing this, so i wondered if anyone knew of any or how to do it Thanks I am using VS2003.net VC++ unmanaged . Will I'm afraid this post is not covered by the scope of this forum. See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=789657&SiteID=1 for more inf ...Show All
Visual Studio Express Editions convert from code from visual c++ 2005 to visual C++ 6.0
hi, i have a code thats written in visual studio C++ 2005 express edition and i want to convert it to its previous version ( visual c++ 6.0 ).. i have used the STL in my code and it does not run on 6.0 .. the error that is being shown is that ostream : ambiguous symbol.. how can i rectify this problem.. and more the workspace or project file for the 2005 edition is .vcproj.. can i open it in VC++ 6.0.. if yes then how.. and if not then what can be done.. Hello Re: convert from code from visual c++ 2005 to visual C++ 6.0 This forum is for “Questions about Visual C++ Express Edition and getting started with C++.” For questions such as yours please use the newsgroups at h ...Show All
SQL Server Having a problem sending a query ?
I wanna search for cars thats are Ferrari,_NAME and _TYPE fields are full text indexed SELECT COUNT (*) FROM CONTAINSTABLE ( ADDS ,*, 'Ferrari AND Cars' ) >>> return only 8 results but in facts there are 600 results.Doesn't "*" search in all coloumns ******************************** Do I have to make a query like this.... SELECT Count(T1 . [KEY]) FROM CONTAINSTABLE ( ADDS , _NAME , 'Ferrari' ) AS T1>>>>>return 600 results. INNER JOIN CONTAINSTABLE ( ADDS , _TYPE , 'Cars' ) AS T2 ON T1 . [KEY] = T2 . [KEY] I don't want this type of query as I don't know how many parameters I will have and I am sick of the joins which slow down the server. ...Show All
Visual Studio Any tutorial for GAT?
I am wondering if there is any good tutorial available anywhere that would describe how to implement typical guidance scenarios in guidance packages from the beginning to the end Materials that I found so far are not satisfactory for the following reasons: 1. The latest Hand-on Lab seems to be created for the Dec 2005 version of GAT and cannot be registered with Jun 2006 version; 2. Most articles either describe the theory without specific examples or give specific examples of small tasks without describing a big picture; What I am looking for is a specific roadmap from A to Z starting from generating a stub for a guidance package and continuing with specific steps required to implement a scenario until the package is successfully ...Show All
Visual Studio 2008 (Pre-release) TCP commands through WCF
Hi, Sorry if this is really straight forward I am just a little confused and a little inexperienced with TCP communications, and WCF for that matter. I have an existing third party application that accepts commands through TCP (I can use telnet easily to send commands). I would like to use WCF to write an application for sending commands to this application. I see it is quite easy to communicate over http as I can generate a Service Reference. I am not sure where to start for my case. I realise this is a lot to explain but maybe someone know of a good example of this kind of thing somewhere You may find it easier to put System.IO.StreamReader and StreamWriter on System.Net.Sockets.TcpClient.GetStr ...Show All
Smart Device Development How to register Directshow filter
Hi All , I have developed a directshow transform filter for windows mobile 5.0 smart phone platform but can’t register it. Can any body help me Regards Arindam Biswas Either create a cab file project and mark your filter as requiring COM registration, or write a little helper app that would load the filter (LoadLibrary) and then call DllRegisterServer ...Show All
Visual C++ syntax for autoexp.dat custom for template container??
I have a custom C++ container that utilizes templates. I need to it to reveal all it's container data in the debugger window, but I just can't figure it out. I also need it to display it's other members too, not just the array. The container is like this: //============================================= namespace foo { template<T* > class bar { ... T* mptrArray; size_t msize; }; } //end namespace I have tried following this example, http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=267368&SiteID=1 but with no success. Boris Jabes obviously does not want to answer questions. Chris J. What I was doing in the watch windows was manually entering my var ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Are Direct X Sound Problems Common Amongst End Users?
Hello, First I'd like to apologize that this question isn't related to developing games. I am creating an interactive CD, and I looked around for a general Direct X board, but none are really active anymore. If anyone could help, I would certainly appreciate it. I am a multimedia designer, and I am creating an interactive CD for a client that will go out to about 1500 people. On past projects, I have used one WAV file for the entire project, but on this one, I'd like each of about 9 pages to have a distinct music file, so I think I'd need a smaller format like MP3. However, my multimedia authoring software requires that Direct X Sound be enabled for MP3. I am a little leary of enabling Direct X sound because several years back, clien ...Show All
Game Technologies: DirectX, XNA, XACT, etc. soundBank.GetCue("xxx").IsPlaying - does it work?
Does anyone know if the .IsPlaying value works properly I would assume that the code I wrote below would cause the computer to play the sound only if another one is not already playing, but it still goes too fast for my taste for ( int i = 0; i < ammo;) { if (!soundBank.GetCue( "click" ).IsPlaying) { score += 25; soundBank.GetCue( "click" ).Play(); Draw(); i++; } } George is correct. When you call GetCue() on the SoundBank, a new Cue object is returned each time. So, in your example above, the call to GetCue() for IsPlaying is returning a different Cue object then the call to GetCue() for Play(). However, each call to GetCue() creates a new Cue ob ...Show All
Visual C# ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Hi All, When i tried to connect Oracle database(8i) .I am getting an error "ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified". My Connection string is : "Provider=msdaora;DSN=U500.WORLD;Uid=xyz;Pwd=123;" Please help me out to clear this task. Thanks in Advance Have a look at following http://www.connectionstrings.com/ Should help you. As you are trying to connect to Oracle Database, you might need to have Oracle Client installed. ...Show All
.NET Development Help with TripleDES and RC2 cryptography.
I have 2 questions - 1) I get the following Exception when I try to decrypt data using TripleDES. - "An unhandled exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll Additional information: Specified initialization vector (IV) does not match the block size for this algorithm." How do I make things right The code is as follows - /* Provides TripleDES encryption and decryption using classes in the .net Framework 1.1 */ public class TripleDES_Cryptography { public static string Encrypt(string plaintext, string key, string IV) { TripleDES des3 = new TripleDESCryptoServiceProvider(); des3.Mode = CipherMode.CBC; byte[] by_plaintext = Encoding.ASCII.Ge ...Show All
