Answer Questions
Vikas1111 Get String From PTRDIFF
I have a struct with a PTRDIFF member. It holds an offset to a null terminated string. how to get that string. example: i have OBJ_something->PTRDIFF_member i want it in LPWSTR mystring ,Thanks I think this was answered on another thread, http://www.xtremevbtalk.com/showthread.php t=229019 Nikola VC++ ...Show All
GAINSCOM wincrypt: Linker-error LNK2019
When migrating from VC5 to VC++2005 Express (including Plattform SDK!) i encounter the following problem: encrypt.c contains the following code: ... #define _WIN32_WINNT 0x0400 ... #include <stdio.h> #include <windows.h> #include <wincrypt.h> #include <stdlib.h> ... int winInitCrypt( void ) { HCRYPTPROV hProv; HCRYPTKEY hKey; CHAR szUserName[100]; DWORD dwUserNameL ...Show All
JLSavage using DLLs
After I maked a DLL for example d.dll and I added to new project,when I want to declare a type from that namespace for example d::someclass *new_type = new someclass () ; the compiler generate this error: error C2871: 'd' : a namespace with this name does not exist how can i correct that error ( for add a DLL to a project i select references > add from solution Explorer and choose a DLL file ) thaks ...Show All
guoguowenzi How to do what I already have done in Visual C++ 6.0
I have gone through a book called 'Teach yourself Visual C++ 6.0 in 21 days'. Now I have Visual Studio 2005 C++ the Express edition and I see that much has changed. I really can't do what i did in version 6.0 because to much has changed. For example in 6.0 you had a wizard ctrl W and you attached and set a variable to a control and then called UpdateData() to use the control. But how do I do that now Or let me ask how can I in the best way learn ...Show All
C. Madsen Can create a dll, but fails to create the library for the dll
I can create a dll, but the build fails to create the library for the dll, in debug_dll / win32. In debug / win32 builds just fine, only is static lib. Is there a way to create the lib file by command line Using winxp Pro on AMD64, 2 gig mem, VC++ express 2005. Rick Yes, you can use the tool lib.exe Thanks, Ayman Shoukry VC++ Team are you exporting any symbols from the dll if you ...Show All
_Othello_ Application does only start on PC with installed Visual Studio
I have written an MFC application with Visual Studio 2005 (C++). I use 4 dlls wich have been statical bound to the project (no dynamic loading). All things compile fine and on every PC where i have installed Visual Studio, it is working as release or debug version. But when i try the application on Windows XP without Visual Studio installed on it, the application does not start but brings me a error MessageBox and thats it. The error t ...Show All
Vijay Joshi build errors in vc++
Hi, I am new to vc++. I have one vc++ source code. I am running this on vs2005. for me it is giving the following errors. I saved the source file in the following path. "c:\programfiles". The errors are 1)Error 1 error A2022: instruction operands must be the same size the lines where i am getting the error is: TIGERROUNDSSE2 5 TIGERKEYSCHEDU ...Show All
Bruce Curling "LinkClicked" Function
I'm not exactly sure as what to type in a link_Clicked function to go to the destination that I want, I have never made a link on a program so I don't know how to do it. Here's what I have I just don't know if I'm going in the right direction or not. #pragma endregion private : System::Void linkLabel1_LinkClicked(System::Object^ sender, System::Windows::Forms::LinkLabelLinkClickedEventArgs^ e) { linkLabel1->LinkClicked->ToStri ...Show All
ANDERSLIND help for Errors in VC 6.0
Hi, guys I meet the following error information when I try to compile my source code in VC 6.0: error C2065: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' : undeclared identifier Anyone know how to solve it Thanks. I think your advice would be right. but I do not know which libs should be used. Attached are the libs in my project: oleaut32.lib msvcrtd.lib quartz.lib vfw32.lib winmm.lib kernel32.li ...Show All
sqlguru95 Couple .NET 2k5/CLR enabled DLL questions
I've ported an static lib and a dynamic lib (dll) that depends on that static lib form another environment. I'm now running into 2 questions that I'm not able to find obvious answers to in the help systems in VC or through Googling. 1) In VS 2k5, with an VC++ DLL project with CLR enabled. How do I add .NET Forms to the project I need to create a few (like 4-6 'dialogs') that are then exported by the DLL for all other pro ...Show All
Bomy Why MS Defined so much names for HANDLE??
A handle mostly is a 32bit value, why not use one name for it, like "HANDLE" But Microsoft defined so much names for HANDLE, like "HANDLE" ,"HLOCAL", "HMENU" and so on, is it only for division of purpose Who know The reason is very simple. Each HANDLE is only valid for a couple of functions in the API. Using a HMENU handle with CloseHandle must fail. Also using a HANDLE from a file in SetMenu must fail. So there are a lot of diffe ...Show All
ahmed1979 error with afxwin1.inl
Using VS 2005 Express, I am trying to compile some sample apps I found on codeguru, but I keep runningn into these two errors when compiling as release: [code]C:\Program Files\Microsoft Platform SDK\Include\mfc\afxwin1.inl(1034) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files\Microsoft Platform SDK\Include\mfc\afxwin1.inl(1036) : error C4430: missing type specifier - int assumed. Note ...Show All
DWinTX Product feedback center sign-in dead?
Starting today, every time I try to sign into product feedback, I get my profile instead of product feedback home. It won't let me off the profile page. I've tried this with existing accounts, and newly created ones. Add me also. Actually there is a forum on product feedback site where you should be able to post this request. I have also sent email to team that owns that site, they will take a look ...Show All
rangermac Calling Managed Code from Unmanaged Code ?????
I found this great example on this issue: http://www.codeproject.com/managedcpp/unmanaged_to_managed.asp unfortunatelly , it only works on v.s.net 2003 , and in order to compile it in v.s.net 2005 with the /clr option, you have to make a lot of changes in the code like replacing _gc with ref and alot of other things. I tried to do it, but after all the changes, it still didn't work can someone refer me to an example which is su ...Show All
Global Lens I'm stuck and cunfused. ARR U C++!
ok. i made a small ...small SMALL msdos program with Visual C++ express (yep a newbie) and all it was, was a whats ur name age and if u like this kind of music or game. now i figured out the whole press one if u like this or press 2 for no. but i want to make it a says YES FOR YES! and so on. get it good. here's my code. im really stuck #include <iostream> using namespace std; int main() { int number; /* This de ...Show All
