Answer Questions
PDav Is a .def File Required To Export Functions From DLL?...
...I know it is not required so long as the methods are tagged __declspec(dllexport). However, if the client code is a .Net C# app, I can only seem to recognize the methods' entry points if the DLL was built using a .def file. Can anyone confirm or refute the need for building a DLL with a .def file if the intended client will be unable to link to the import library Thanks in advance. --Doug Hett ...Show All
Qixxin VC++ migration problems
I'm trying to bring a project from VC6 to VS2005 Pro. When I first imported the project there was, not unexpectedly, a long list of compiler errors and warnings, and I modified the source code to get rid of all of them, and am now left with 2 problems I'm not sure how to fix. 1) I get an error during the html help phase of compilation to the tune of "windows can't find hcw" - that's the executable for the help workshop. I see that ...Show All
Brad Eck How to change owner of a process or thread?
Hi, I have a Windows Service that run with SYSTEM user. When i create a new process in this process (using ShellExecute function) the new process got SYSTEM privilege too. I want it'll run as current user privilege. How can i done Any help Hieu Are you searching for CreateProcessAsUser I would try posting at the win32 newsgroups at http://msdn.microsoft.com/newsgroups/topic.aspx url=/MSDN-FILES/028/201/015/topic.xml where yo ...Show All
serpos hae i need some help
i made a program in which i used char *name; cin>>name; also i used cin>>*name; but both of these syntax are not giving any error but at runtime debug window opens and tell me whats unresolved external errors i think it will be stupid to ask these question frm ya but i am a new programmer what so ever so please reply me as soon as possible or tell me if i have any concept mistake Now even I'm confused. :) ...Show All
TypeON profiler for c++ native makefile in vs .net 2003
How can I profile a makefile What app. do I use for profiling I need manual switches for compier - I don't know what to do with DevPartner about this. OK, I have the following c++ project: hello.cpp ------------ #include <stdio.h> int main() { printf("Hello"); return 0; } Makefile ------------ hello.exe: hello.cpp cl hello.cpp ...Show All
bettyday _beginthread() issues...
I am having trouble sending parameters to a thread via the _beginthread(void(*)(void*),unsigned int,void *); call. I just want to send a single integer... this is how I do it now: void main(){ int x; _beginthread(threadMain,NULL,x); } void threadMain(void* x){ //blah }; I have tried every form of casting that I can think of, in both the parameter sent and the parameter received. It ...Show All
PsychicDave Compiler does not find form class
Hi, beside that the built in real time compiler an syntax checker in the formular designer for C++ projects ( VS 2005 beta 2 ) is buggy power 10 i have a little problem. Pls guys fix that!!! I#m crying sometimes I'm designing a little MDI app. So when i want to show an about form from the main formular the compiler says unknown structure for that class. But when i include the header of the about form class some really strange things are happeni ...Show All
Rxra Can Visual Studio 2003 and 2005 co-exist?
Can Visual Studio 2003 and Visual Studio 2005 co-exist on the same machine (for one project we are depended on libs from Oracle, and they are not compatilble with 2005). I have installed VS2005 but as per my knowledge there is no facility to build assembly in different framework under VS2005 (which was available in 2003).Now I want to build this dll in Framework 1.1. How can I do that other than re-installing VS2003 ...Show All
DWells COleDateTime::Format asserts for years < 1900 in VC 2005, bug?
Does anybody know if this is a bug in the new VC 2005 libraries int _tmain(int argc, _TCHAR* argv[]) { COleDateTime datetime; // defaults to 1899 datetime.Format(L"%Y-%H"); // generates an ASSERT return 0; } Code that uses this construction works fine in VC 2003. COleDateTime should be able to handle years from 100 to 9999. Thanks, Victor Looks like bad assertion in the VS2005 CRT. ...Show All
Armoghan ifstream::seekg() counts a newline char twice?
I have a file in the following format: abc def ghi I ran ifstream::seekg(0, std::ios::end) on the file and got a value of 13 instead of 11 when I did a tellg(). I did some experimenting with the positioning of the cursor. First i used seekg(3,std::ios::beg),after which, using getline(), passed everything until EOF into a character array. The first char was ASCII value 10 (newline) followed by 'd' which wa ...Show All
k.aadhi vc++8.0 bug: access violation upon call of any CImageList methods
I have sucessfully imported and compiled a complex MFC 6.0 project from vc++6.0 into vc++ 8.0 (MFC 8.0). It contains several subprojects (libs and dlls). In vc++ 6.0 those project linked MFC6.0 statically and after I imported it to vc++ 8.0 I set the linkage of MFC8.0 to "shared". However when I try to compile and link the project in vc++ 8.0 in release mode (debugmode works fine) I get an acess violation in afxcomctl32.inl. This happnes w ...Show All
bob_m10 Capturing Screen
Hello, I've been wondering how is it possible to capture the screen in my Visual C++ 2005 Windows Forms application. With Thanks, Gal Beniamini. You could use a 3rd party product that contains a simple COM component called Print Screen Deluxe from American Systems. Go to www.americansys.com . Your code cou ...Show All
jpadilla dialogs
hello, i just started programming using this software and i was wondering if anyone could help me. given i have 2 dialogs. how do i add the 2nd dialog class as a variable to the first dialog class thanks! cgraus, thanks a lot! Like any variable. To create an int int x; To create an instance of a class called TheDialog: TheDialog dlg; vani, ...Show All
Ronald S VC++ 2005 Toolbars
Is there a way of getting the office 2003 style toolbars in VC++ 2005 I know they are available in C# and VB 2005, but VC++ has the old style office 2000 toolbars. Any suggestions Thanks, Paul Depending on whether you this is a new app, or an existing MFC project, you might want to consider doing this in MFC. MFC 8.0 applications are able to host WinForm controls (such as ToolStrip) in their ...Show All
Dan S Error LNK2001: unresolved external symbol "__declspec(dllimport) public: class CString __thiscall
Hi, I am trying to use 3 rd party API interface in VC++ module. Below is all that I got in the package. CdCore.dll CdCore.lib CdCored.dll CdCored.lib CdDefs.h CdSdk.h This is my program #include <cstdio> #include <conio.h> #include <sys\types.h> #include <string> ...Show All
