Answer Questions
stanley lippman [Jochen K -MVP] Windows XP Password character.
Hi, Dont know if this is the correct forum, but since I didnt get any answers elsewhere, I'm posting it here as well The Problem: On some machines, my password field displays the password character as the "dot" - which is XP standard, and on other machines it dispays small square boxes. Details: We have written a win32 application in C++ with, in which we have a password field. Inorder to use the XP style of "bulleted" password chars (in ...Show All
KTMFBA CWnd::CreateControl fails with GetLastError = 14007
I have a simple VC6.0 Dialog based app. Within the OnInitDialog() , I have some code which creates a Slider Control from the Windows Common Control Library : pMySlider = new CWnd(); CString str("MSComctlLib.Slider"); CLSID id; CLSIDFromString(str.AllocSysString(),&id); BOOL bres = pMySlider->CreateControl(id,"Slider",WS_VISIBLE,CRect(30,30,220,100), this ,5501); This works fine on VC6.0 However , when the above code is po ...Show All
philipbennett25 please help me to convert a C++ code into .dll
Hello, I have an already made project in C++ and I need to use its functions in my C# project. I think that I must convert it into .dll file, but I am very confusing in how to get a .dll file , that can be referenced in C# project , from a C++ code files. I am reading many articles about that but I can't apply any one. Please help me to doing that. If anybody can help me please give me the e-mail to send the C++ code. Or it ...Show All
WbTest1- How to get current local time of a remote system
I want to get the current local time of a remote system connected on LAN network using VC++ MFC. Please help me to solve this problem. Don't post duplicate! http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=425046&SiteID=1 Also this post is OT for this forum! ...Show All
GKim cli arrays(newer)
Hi, I am having a problem with cli::array's, here is an example of what I have. ref class A { private: Int32^ i; String^ s; public: A(String^ s2, Int32^ i2) { s=s2; i=i2; } }; ref class B { private: cli::array<A^ >^ a; public: ...Show All
GregCost Problem with _CrtSetReportHook on VC++ 2005
Hello there! I have some a problem when i use _CrtSetReportHook( _CrtSetReportHook2 also has the same problem). as a parameter to _CrtSetReportHook i have a funtion: static int report(int reportType, char *message, int *returnValue); to dump the output data in a file. but when my program exits and the CRT Library attempts to call(automaticaly) the report() funtion i get an access violation at a file named stream.c at this line: ...Show All
Kosta II Linker errors with MIDL-generated C file and /clr
I'm porting an existing C++ app to .Net. It uses an ActiveX control that we also wrote in C++. We use CLSID_ComponentName defined in the the ComponentName_i.c file generated by MIDL to create the control. When I turned on the /clr flag, I was forced to specify that this C file should be compiled as a C++ file. However, since doing that, I get the following linker errors: error LNK2020: unresolved token (0A0008D3) CLSID_Com ...Show All
AusableBrownTrout Getting WMI Data From a Remote Computer Visual Studio 2005 C++
I am trying to get the following script (Sample from MSDN) to work with Visual Studio 2005. It’s a sample script for WMI; retrieving data from a remote system. Not sure what’s going on, code compiles ok but the linker is running into the following error: wmipart9.obj : error LNK2028: unresolved token (0A000317) "wchar_t * __stdcall _com_util::ConvertStringToBSTR(char const *)" ( ConvertStringToBSTR@_com_util@@$$FYG ...Show All
P. Parent using enums exposed by a c++ dll from c#
I have a 3rd-party C++ DLL that exposes numerous methods that take an enum value as a parameter. This DLL also defines those enums. Any C++ app can simply include the dll's header file and get the enums, methods, and classes just fine. I'm writing a managed c++ /clr app to wrap those methods/classes for consumption in a c# app. What should I do with those enums so that I can pass them back to the managed c++ wrapper from my c# app ...Show All
asifbhura Migrating a VC 6 Project to VC 8 (aka VC 2005)
Dev Environment: VC 8 version 8.0.50727.26 (RTM.050727-2600) OS: Win XP Pro I am migrating a VC6 project to VC8 and I'm getting an error that doesn't make a lot of sense. First of all, the project builds fine in VC6 - no errors, but of course, some warnings. The project uses STL heavily so that some of it (not all of it) can be built on different OSes. After fixing 700+ errors from the initial attempt to build (mostly due to ne ...Show All
tickling Error report when running C programs.
Hello all I hope this is not a duplicate post. I am a beginning programming student and I'm learning to program with the C language. I am reading a C programming book and have begun to build very simple programs. I am using notepad to write the programs and Microsoft C++ Toolkit 2003 to compile them. The first few programs I tried execute, but as I work ahead, all the programs causes the window's "Error report" message to appea ...Show All
michels Problem including <windows.h>
Hi there. I've got two systems - a desktop and a laptop, both running VC2003. I start a new Windows Form project on the laptop ,add a button and include a call to System::Windows::Forms::MessageBox::Show( S"hello" ); and then place #include <windows.h> at the top of the page, I get these errors: i:\temp\test34\Form1.h(86): error C2039: 'MessageBoxA' : is not a member of 'System::Windows::Forms' i:\temp\test34\Fo ...Show All
Leancavalheiro Image generated from scanner/fingerprint device
Hello, i would only need to get an image generated by a fingerprint reader. - If it worked like a scanner device, would i be able to get the image ( example fake funcion "::BitmapGetFromClipboard()" ) - Otherwise, have you suggestions Thanx Lewis As this question is not specific to Visual C++ you would be better of asking your question in one of the Win32 programming newsgroups. Here is the list of s ...Show All
Kaer about " while ( cin >> string) "
I am studing a famous book called "c++ Primer" by Stanley B.Lippman. and in it, there is a program as follows: #include <string> #include <iostream> #include <vector> using namespace std; void main () { string word; vector < string > text; while ( cin >> word) { text.push_back( word ); } cout << "words read are: \n"; for ( int ix = 0; ix < text.size(); ++ix) { cout ...Show All
Anthony Desa Linking problems about MFC and others
Dear all, I meet some linking problems as follows. I have added afxwin.h in the head file. Also, I use these libs: strmbasd.lib Quartz.lib strmiids.lib winmm.lib msvcrtd.lib Kernel32.lib oleaut32.lib vfw32.lib advapi32.lib version.lib largeint.lib user32.lib gdi32.lib comctl32.lib ole32.lib olepro32.lib uuid.lib WSOCK32.LIB log.lib Could you please give me some ideas about that thanks Linking... StdAfx.obj : error LNK2001 ...Show All
