microsoft.public.dotnet.languages.vc Archive - August 2004
Post a message to this list
Messages
Page: 1234567891011121314
why it's error? (3 replies)
microsoft.public.dotnet.languages.vc
void CkgDlg::OnBnClickedOk() { // TODO: String* str; SqlConnection* myConn new SqlConnection ("Provider Microsoft.Jet.OLEDB.4.0;Data Source data1.mdb;"); //error C3828: try{ str "select item1 from tab1"; SqlCommand* myCmd new SqlCommand(str,myConn);//error C3828: myConn Open (); MyCmd ExecuteNonQuery(); ..... ..... what mean is error C3828
SystemParametersInfo doesn't work in vc.net ! (2 replies)
microsoft.public.dotnet.languages.vc
hi, all. In my computer(windows2000 professional), I found this code doesn't work! SystemParametersInfo(0x2000/*SPI GETFOREGROUNDLOCKTIMEOUT*/,0,&dwTimeOut,0)) ; The value of dwTimeOut always equals to Zero.But the same code in VC 6.0 works well! Why ?? What things I should do for query the right value in vc.net?? Thanks for any help!
Task List (2 replies, VIP)
microsoft.public.dotnet.languages.vc
Hi, I am using C in Visual Studio .Net and I just discovered that I can use /TODO to setup a task list which is great for me who have poor memory. However, I can only view individual task list per file. Is there anyway that I can see the consolidated task list per solution / project? Thanks in advance. Andrew.
Tooltip when over a specific location over an image (2 replies, VIP)
microsoft.public.dotnet.languages.vc
Hi, I would like to place an Icon on an Image. If the mouse is over this Icon, I want to display the associated text in a tooltip. How would I do this? Any ideas? My last request wasn't answered so I give it a second try. Best regards, Martin
Ambiguous template function, best way to solve it... (3 replies)
microsoft.public.dotnet.languages.vc
Hi, I've got a template function move by( rect T &, T x, T y) being called as rect float r; move by( r, 3.0, 4.0 ); However, i'm getting stupid ambiguities when I use floating point numbers. event handler.cpp(43) : error C2782: 'void ' : template parameter 'T' is ambiguous could be 'double' or 'float' This message is referring to the x,y arguments. Do I really have to specialise for these types? I...
cast to __nogc pointer from IntPtr (3 replies, VIP)
microsoft.public.dotnet.languages.vc
Hello I override the WndProc method of a control derived class and want to handle the WM NOTIFY message. The following code leads to a NMHDR pointer that points to something where all members are shown as undefined in the debugger. NMHDR nogc *pnmh static cast NMHDR nogc* (msg LParam.ToPointer()); if I redefine NMHDR as a gc struct and do the following everything works gc NMHDR gc *pnmh try cast g...
Placing form class inside Namespace (2 replies, VIP)
microsoft.public.dotnet.languages.vc
Hello, When I'm wrapping a form class inside a namespace it breaks the form designer. The message "An error occured while loading the document. Fix the error, and then try loading the document again." This is annoying as I have to take the namespace away whilst editing the form. Why does this happen and how can I fix this? Thanks in advance Simon Jefferies simon@cooltoolsonline.co.uk
Connecting to other pc (3 replies, VIP)
microsoft.public.dotnet.languages.vc
Hello, I'm creating an application which uses PerformanceCounters, and when I specify a machinename in my domain that isn't connected yet ("Access is denied"), I want to connect to it at that point. So I was wondering if there's either a way to bring up the Connect To dialog (like when you enter \\Machinename in a browser) or perhaps a way to do it without the dialog at all. TIA, Michiel.
Using a form in an mfc project (2 replies, VIP)
microsoft.public.dotnet.languages.vc
I am an old mfc prgrammer. I have reciently obtained the latest .net pro platform. I have a small, project to complete in a tight time frame, that will control a device using ethernet packets, and will have a GUI. I initially created it using .net C mfc, because that's what I'm used to. But others in my shop have created extensive GUI contols for their interfaces using forms, and in C#. I was able...
LINK : warning LNK4243: DLL containing objects compiled with /clr is not linked with /NOENTRY; image may not run correctly (2 replies)
microsoft.public.dotnet.languages.vc
When I compile my "mixed mode" C dll in Release mode, I get these warnings LINK : warning LNK4243: DLL containing objects compiled with /clr is not linked with /NOENTRY; image may not run correctly LINK : warning LNK4089: all references to 'MSVCP71.dll' discarded by /OPT:REF LINK : warning LNK4089: all references to 'OLEAUT32.dll' discarded by /OPT:REF LINK : warning LNK4089: all references to 'US...
Simple Managed DLL Creation (8 replies, VIP)
microsoft.public.dotnet.languages.vc
Hi all, I'm fairly new to .NET and I haven't done much in C before, nothing complex anyway, but I have a pretty good understanding of programming in general. What I'm trying to do is create a .DLL that contains a lot of the functions and classes that I normally use. I've followed the examples from http://www.c sharpcorner.com/2/pr12.asp which contains a pretty good example of creating a simple .DL...
Template specialization (2 replies)
microsoft.public.dotnet.languages.vc
Hello, I have a code which behaves differently if template parameter has a specified member: #include iostream template class T, bool (T::*)() class member bind { public: typedef T type; }; template class T1, class T2 class has member { public: static const bool value false; }; // 1 template class T class has member T, typename member bind T, T::member ::type { public: static const bool value true...
enum handling change in VS 2005 (10 replies, VIP)
microsoft.public.dotnet.languages.vc
All, I've installed the VS 2005 Beta 1 and was trying to build our current product. I get a compile error when enum value is specified with classname::enumname::enumvalue. Seems the compiler does not want the enumname there anymore. This was not a problem with any previous versions of VS. I could not find any help in any of my programming books or in MSDN. Can anyone explain the reasons to me? Is ...
Does VC++.Net support C99 standard? (5 replies, VIP)
microsoft.public.dotnet.languages.vc
Does VC .Net support C99 standard?
How to create a collection of managed objects (2 replies)
microsoft.public.dotnet.languages.vc
I would like to create a collection of managed objects to be exact, instances of a form which I use to display images. This collection would be similar to the controls collection which is part of every Windows form. What is the syntax to create such a collection? Could someone please point me to an example of a Collection of Managed Objects (either strongly typed or not)? Howard Weiss
Splitter Window (3 replies, VIP)
microsoft.public.dotnet.languages.vc
Hi, I want a window on the left side of my mainframe to put a tree control on, and I want it to be horizontally resizable (like the one you can make appear on the left of the internet explorer window). I'm making a multi document application. Does anyone know how to do this fairly easily? Thanks.
C++ for .NET development? (11 replies, VIP)
microsoft.public.dotnet.languages.vc
I see that of the 4 languages for which an "Express" edition was just released (C#, VB, J#, and VC), the "Visual WebDev Express" tool for building ASP.NET apps is capable of building back end code with only the first 3 of those languages [insofar as I can tell from the Web site; I have not downloaded it]. Should we interpret this to mean that even under Whidbey, with C /CLI replacing MC , the pref...
Firt Admin Account (2 replies, VIP)
microsoft.public.dotnet.languages.vc
How can I check if a UserGroup has the First Admin Account in it? Thanks in advance
port VC++ 6 codes to VS.net (2 replies, VIP)
microsoft.public.dotnet.languages.vc
Hi, Is there a document to describe the guideline to port codes from VC 6 to VS.net C (7.1) ? I found there are so many things are not backward compatible. Like: fstream.h, iostream... I am helpless now.
BUG: __raise throws access violation if __unhook called from inside event handler (native events) (3 replies, VIP)
microsoft.public.dotnet.languages.vc
I need to unhook event receiver as result of native C event. It unhooks successfully, but raise does not return and throws access violation. Visual Studio 2003 How to reproduce: Consol Win32 exe project #include "stdafx.h" [event source(native)] class Publisher { public: event void Signal(Publisher* sender); void RaiseSignal() { // throws access violation raise Signal(this); } }; [event receiver(n...
/clr option (3 replies, VIP)
microsoft.public.dotnet.languages.vc
Hi, I am starting to follow a book which is saying to use common language runtime (clr). So I defined a class I created as gc type and also I included mscorlib.dll but when I build the program the VC is saying c:\aldi3\cpp\helloWorld\helloWorld.cpp(7): fatal error C1190: managed targeted code requires '#using mscorlib.dll ' and '/clr' option The book does not show how to define clr option. How can...
Compile As property (2 replies, VIP)
microsoft.public.dotnet.languages.vc
I have set the Compile As property of a project to be "Compile as C file". However, when I add a new .C file to the project, the Compile As property of the project is not inherited by the file. Do I have to override the property for every .C file? I am using Visual C .Net 2003. Thanks.
Error C2065 question (2 replies, VIP)
microsoft.public.dotnet.languages.vc
I get an error on this line of code: LicenseKey SysAllocString(OLESTR(m strLicense)); The compiler complains: error C2065: 'Lm strLicense' : undeclared identifier The compiler is appending a capial "L" to my variable (m strLicense). There is no Lm strLicense declared anywhere in the project. Can someone explain why this is happening? Running C v7.1.3088 on XP Pro, SP1
How to do thread locking in VC++ .NET? (2 replies, VIP)
microsoft.public.dotnet.languages.vc
I have a .net application with several threads updating the same file. How do I do thread locking so that the file updating can be synchronized? Sample codes will be helpful.
RBN_AUTOBREAK help request (2 replies, VIP)
microsoft.public.dotnet.languages.vc
I'd like to be able to use this message (RBN AUTOBREAK) with my rebar control in Windows XP, and I just can't seem to get there. The application I'm working on is a .dll that is loaded by another application. To start with, the RBN AUTOBREAK definition in commctrl.h is surrounded by an "#if ( WIN32 WINNT 0x0501)". Unfortunately, this is not defined for my application, which includes only windows.h...
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification