-
- Stop Dll Injection
by brietje698
- 14 Replies
- Last post
by rtpninja
- Hello, I'm wondering how i could stop people from injectinf Dll's into my app, anyone could tell me
-
- Want to append my application path in environment variable PATH thru program / batch file script.
by Purusothaman A
- 3 Replies
- Last post
by Simple Samples
- Hi all,
I want to append my application's path in environment variable PATH.
I am not asking to do this manually. Want to automate it either by VC++ programming or batch(DOS script) file.
Thanks in advance.
Regards,
Purusothaman A
-
- How to know the current directory path of an application.
by Am_ac1
- 3 Replies
- Last post
by Am_ac1
- Hi,
I want to know the directory path of my application (where it resides) when it starts. I have a data file which resides at the location where my application is. Hence to access this file I want to know the location of my .exe file.
Thanx.
-
- Getting the number of characters in a TCHAR string
by Abtakha
- 4 Replies
- Last post
by Abtakha
- Hi all, I am trying to learn everything related to TCHAR's so I can write programs that can be compiled in Unicode if need be. I understand the differences between narrow and wide characters, char and wchar_t (and the generic TCHAR), the L prefix and generic _T() macro, and how to use preprocessor defines to tell the compiler which to use. However, I haven't gotten very far in development and have
-
- Coinitialize doesn't work the first time called
by Darrell Bennington
- 8 Replies
- Last post
by Darrell Bennington
- I had to add a call to an Oracle stored procedure to a VC++ 6.0 project in a library I created, and did it using ADO so it needed to make sure COM was initialized. I put the COM requirement back onto the client code (since I can't handle the context of the call - and the method will be called from several different thread contexts).
On the client, the call happens on an event thread that gets s
-
- Looks is a microsoft bug. Release dll built with vs2005 fails load
by fchen
- 7 Replies
- Last post
by Ben Anderson MSFT
- One of my project using a dll developed in C. The project runs fine with VC6, VC2003 both debug and release build.
And It runs fine with VS2005 debug build.
But the application crashes during load using VS2005 release build.
Here is the debug trace. The WINDBG stack is not right
Thanks
FC.
First-chance exception at 0x7c9109f9 (ntdll.dll) in OpenController.
-
- VC++ 2005 redistributable
by Jay K
- 14 Replies
- Last post
by Nelson B
- Hi, I'm trying to get an MFC application compiled with VC++ 2005 to run on a machine with VC++ 2005 express. There seems to be a problem with the manifest (which I don't fully understand despite reading the info on msdn). The original error in the event log when I tried to run it said Microsoft.VC80.CRT not installed so I installed the platform SDK and also copied over the atlmfc directory from th
-
- making a CFile and CString objects
by OpKc
- 12 Replies
- Last post
by Ramkrishna Pawar
- Hello!
I viewed a lot of documentation, where an objects of CFile and CString classes was used, but when i tried to create a CFile object
...
CFile conf( "config.txt" , CFile::modeRead);
...
i've got error messages:
error C2065: 'CFile' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'conf'
error C3861: 'conf': identifier no
-
- Textbox acts like command line window (looking for better solutions)?
by SeeSharp
- 7 Replies
- Last post
by Simple Samples
- Hi all,
In my former thread
( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1649239&SiteID=1 ), I
asked about how to redirect stdout to a .net control. Since the problem I'm trying to solve is a little more than that, let me describe it in more details.
The GUI project I'm working on needs to use a existing library. All the methods in the library use "printf&qu
-
- How do I write text do the beginning of an existing file, rather than appending text to the end?
by JacksonJones
- 4 Replies
- Last post
by JGLP
- Simple question. I want to write text to the first line of a file, not the line after the last one, which is the WriteLine defualt. Hopefully there's a simple answer, but I was having a hard time trying to figure it out. Thanks,
Jackson
-
- seekg not working as expected
by Julian V
- 5 Replies
- Last post
by Simple Samples
- hello, I am having problems with a function that i have been using in my program to read a 'command file' and parse them into commands. the surprising thing is that the program works fine on some computers and not so fine on others. I tried debugging and cannot make any sense of it. I narrowed it down to the seekg function fine and made this simple program which (from what I understand) does not s
-
- instance of in c++
by ZoharL
- 2 Replies
- Last post
by ZoharL
- suppose i have the following scenario: class A{A();} class B:A{B();} class C:A{C(); void doSomethingElse(){}} class Temp{ Array<A*> m_array; void Temp: oSomething() { for (int index=0 ; index < m_array.length ; index++) { A* elem = m_array[index]; if (element instance of C) { elem.doSomethingElse(); } } } how can I replace "(element instance of C)&qu
-
- Mouse Wheel
by Jammy1986
- 4 Replies
- Last post
by Jammy1986
- Hey, I was wondering if there was any way to get the current mouse wheel rotation apart from the WM_MOUSEWHEEL message, i.e a way without using the WndProc.
-
- Another error (image corruption, when it's not corrupted)
by Jerry584894
- 2 Replies
- Last post
by Jerry
- 1>CVTRES : fatal error CVT1100: duplicate resource. type:BITMAP, name:2002, language:0x0409
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
... No idea what the error could be.
-
- VS6.0 setup
by one-trick-pony
- 3 Replies
- Last post
by Jonathan Caves - MSFT
- Greetings,
I am new user of Visual C++ 6.0 compiler. I am trying to compile a code that uses Win32 API function DeleteVolumeMountPoint. I get error which says "undelcared identifer DeleteVolumeMountPoint". I ran PSDK setup. I then updated the compiler to point to new directories with PSDK header files from Tools->Options->Directories Tab and added in paths to newer header files
-
- undefing typedef
by pavan_734
- 3 Replies
- Last post
by pavan_734
- Hello,
Iam using .NET2003. Inside my application I have typedefed unsigned long int as UINT32.
i.e typedef unsigned long int UINT32;
But a VC++ file BaseTsd.h(for me available in path D:\Program Files\Vc7\PlatformSDK\Include), has typedefed unsigned int as UINT32
i.e typedef unsigned int UINT32;
Because of this Iam getting compilation error error C2371: redefination of
-
- Visual Studio 2005 performance issues debug vs. release
by Jens Kaftan
- 7 Replies
- Last post
by Jens Kaftan
- Hi,
I have recently ported a large project from Visual Studio 6.0 to Visual Studio 2005. While the code performance in release modus is excellent, the debug version is very very very slow.
One algorithm, which performance is really bad in debug mode uses extensively the std:: priority_queue. To locate the problem I have created a new C++ project using the standard settings (General
-
- Illegal System DLL Relocation
by H
- 9 Replies
- Last post
by Philt_UK1
- Just want to say thank to Matt & Mike.
This problem was driving me mad, and now is fix thanks to you both.
Regards
H
-
- error LNK2001: unresolved external symbol "public: __thiscall
by kllatha
- 9 Replies
- Last post
by kirants
- Hi all,
I am having a problem with the VC++ 2005 development. I have 3 projects in the solution and I have set the dependencies for the projects accordingly. In my main project I am accessing a class which is defined in one of the dependent projects. I have the following lines of code in my main project
m_imager = new Imager(_T( "Imager" ), 0,20000,20001);
and the
-
- File Handler not working
by Howler72
- 8 Replies
- Last post
by Howler72
- Hello All,
I am having a hard time trying to figure out why my code does not work. I was tasked with writing a small win 32 console app to accept user directory and file name to write to the local machine. My app creates the directory at this point however I cant the file to be written. What am I doing wrong All help appreciated.
Code Snippet
int main(){
char user
-
- Compile error when including windot11.h
by Danial
- 2 Replies
- Last post
by Danial
- Hi all,
When I include windot11.h in my program, over 100 compile errors appears, could any one help me
I have included window.h, winioctl.h, ntddnids.h before I include windot11.h
-
- problem with std::vector::resize call in a static library
by Pellaeon
- 7 Replies
- Last post
by Pellaeon
- Hello, I use Visual Studio 2005 Standard Edition with SP1. That's my problem: I have a static C++ library with the class CNiUsb6008. There is the method bool CNiUsb6008::getCurrentData(std::vector<double>& data,double timeout,unsigned int samples) const; in this class. The method resizes the vector 'data' with vector::resize. A MFC project(dialog based) uses the library. When calling
-
- typical problem with vector push_back
by SU_Anonymous
- 6 Replies
- Last post
by SU_Anonymous
- Hi im facing a very strange problem: whenever i use vector push_back, then after like 20 push_backs, my program makes the system physical memory to shoot to around around 1.5 GB , execution gets so slow that it's almost dead and after some more time prog gets stuck at a point Below is the snippet where i think the prob shld be. can ne1 figure out the bug void AND::buildObject (const string& g
-
- Calling Microsoft Project from a C++ program
by Mrs Spike
- 2 Replies
- Last post
by Mrs Spike
- From within a C++ program, I want to run MS Project and open a schedule file. I have included all the classes from the Microsoft Project type library into my C++ project. I am trying to use the class CMSProject for a MS Project file.
When I try to #include CMSProject.h I find that it will not compile because there is no definition of class Application . It is not in any of the files b
-
- Custom TcpListener class problem.
by David S. Anderson
- 5 Replies
- Last post
by Dav? S. A???????
- Operating system: Windows XP Home Ed. w/SP2 Technology: C++/CLR | .NET 2.0 I have created my own TcpListener class that is inherited from the TcpListener class from the System::Net::Sockets namespace. this class is contained in an assembly (type of dll). Here is the code of my assembly: // tcp.h #pragma once using namespace System; using namespace System::IO; using namespace System::Text; using na