-
- file seek then read thread-safety
by b1st
- 6 Replies
- Last post
by Sdi
- Hello, I have a class that exposes file seek and file read functionalities. A single instance of this class opens exactly one file and can be used in more than one thread. So my question is can thread B seek and change the read pointer while thread A is reading the same file and therefore cause the read function in thread A to return unintended data I'd been convinced that this scenario is in fact
-
- DLL Load issue
by George2
- 6 Replies
- Last post
by George2
- Hello everyone,
I am developing a DLL and I implement a class in the DLL. I am wondering in the two situations,
1. DLL is loaded by a single process multiple times
2. DLL is loaded a couple of times by multiple process
How much times will the constructor be invoked I want to learn how objects inside a DLL is shared between different process. Is it possible to make multiple process shar
-
- win32: vertical Toolbar
by Claus554327
- 3 Replies
- Last post
by Claus
- Hello everyone, I am currently building a real Windows Toolbar for an application written in another language and after some initial problems, it is going really well. However, today, I tried out changing the alignment of the toolbar to vertical. I realized that if the tools include separators, the toolbar is much too wide than it should be. Leaving the separators out, the width was correct, apar
-
- Implementing intellisense in C++
by nosage
- 2 Replies
- Last post
by nosage
- I am trying to find a way to implement intellisense from a large set of interfaces and functions in the Visual C++ environment. Does anyone know how to do this I have looked in the help documents and found XML schema mentioned a lot. I am not too familiar with XML. Also I found that you can create a code snippet in XML and use that for intellisense, but it doesn't mention C++. It talks about C#, V
-
- Repeated loading/unloading of libraries causes Error 8
by Smitty1276
- 7 Replies
- Last post
by Simple Samples
- I have a set of components in DLLs that I have to load and reload many times... unless necessary, I would prefer not to get bogged down by specifics about that; just know that I HAVE to LoadLibrary() then FreeLibrary() on those DLLs many times--mostly due to an annoying amount of static data that causes problems "resetting" things. In any case... after several iterations of the load/unlo
-
- Is there a way to create a dll in C++ without a def file and have it work for a Visual Basic Host?
by georgeob
- 14 Replies
- Last post
by georgeob
- Is there a way to create a dll in C++ without a def file and have it work for a Visual Basic Host
-
- Problems connecting C++ and VBA using a DLL
by Sanign
- 4 Replies
- Last post
by Sanign
- Hi! I have created a Win32 DLL project to connect a few functions written in C++ with excel through VBA. Everything works perfectly well in the computer where I have Visual C++ 2005 installed, and I can use the C++ function via the DLL with no problem, nevertheless when I try to use it in another computer where Visual C++ is not installed, the DLL does not work and it seems as if Visual Basic didn
-
- problems creating c++ browser applet
by luca morelli
- 3 Replies
- Last post
by Damien Watkins - MSFT
- hi, i'm trying to create an internet explorer applet like in managed c++ in .net 1.1. i read that this may be achieved creating a user control and linking it inside the html page. I tried this from csharp and seems to work fine enough, but if i follow the same steps creating an empty c++ user control and try to open the applet i see only a rectangle. I think this is some kind of security issue, ma
-
- PlaySound() hangs my program help
by nga911
- 7 Replies
- Last post
by TilakGopi
- am using a PlaySound("dot.wav", NULL, SND_FILENAME | SND_SYNC);
to play dot.wav file it works but hangs the program till it stops,is there any way to make it play smothly.
or can i use waveOutOpen to play it
if(yes)
{
how
}
&
-
- make a red border for a static text..
by LS Mike
- 2 Replies
- Last post
by Simple Samples
- I would like to add a red border whenever i select the static text, activeX Control or bitmap. How can i add this effect in it and how can i retrive it to normal Thanks. Regards, Mike
-
- Having problem with FindWindow()
by Mack M
- 4 Replies
- Last post
by rtpninja
- Hi, I'm pretty new with CLI/C++ and was playing around with the windows api. This is my code:
Code Snippet
[DllImport("user32.dll")] static HWND FindWindow(LPCTSTR lpClassName, LPCTSTR lpWindowName); [DllImport("user32.dll")] static DWORD GetWindowThreadProcessId(HWND hWnd, LPDWORD lpdwProcessId); HANDLE testfunction() { HWND CalcWindow = FindWindo
-
- Cannot handle preprocessor definition on 64bit platform
by Senqiang
- 2 Replies
- Last post
by Senqiang
- I can compile a project successfully on x86 platfomr. When I switch to x64 config, I got the following error when compiling:
Error 1 fatal error C1083: Cannot open source file: 'NO_CONFIG_READER': No such file or directory File: c1xx
This error sounds wired since ¡°NO_CONFIG_READER¡± is not a file. It is a preprocessor definition defined in the project property. Any hint
-
- /Gm minimal rebuild liminations
by Jan Zich
- 1 Replies
- Last post
by Bite Qiu - MSFT
- Are there some known limitations of the /Gm option I'm currently working on a larger project, and sometimes I'm having troubles to compile it; especially when I synchronize from our repository. If I do have a problem, I have to recompile everything or use IncrediBuild.
I found only one puzzling note in the MSDN documentation related to limitations of /Gm (about not having mutliple class def
-
- Compiler
by Thorium
- 2 Replies
- Last post
by Thorium
- I have Microsoft visual studio 2005 registered. I want to learn C
before i go on to C# or C++ and was wondering if the compiler for C++
would work with C. If not could any of you tell me a good place to get
one -Thorium
-
- Memory leak
by hanumanth
- 2 Replies
- Last post
by Prasad Somwanshi
- Hi all,
A memory leak is showing by purifyer in my code
it is showing the same line for 4 memory leaks in the line
hRes = pThisNode->get_parentNode(&pParentNode);
plz tell me how to fix these memory leaks.
Thanks
-
- Problem linking to library created by VS2005 in VC2003
by Celios
- 1 Replies
- Last post
by My Site
- I am using VS2003 and have to link an application with a library called "Services.lib" created in VCS2005. Whenever I link with Services.lib whether it's Debug or Release, linker will fail. If I build Debug version and include Debug version of Services.lib, there were a lot of CRT unresolved external symbol to Services.lib and also the other libs I linked in the Linker's Additional Depen
-
- Draw transparent rectangle
by Surezsu
- 4 Replies
- Last post
by Pintu Shukla
- Hi all, At runtime how to draw a transparent rectangle on the bitmap, which is loaded from the file using memory DC.
-
- How do we use and include PRECOMPILED HEADER FILES in our codes... .cpp or .h ...? Anybody...?
by AllahIsGreat
- 4 Replies
- Last post
by sunil_singhal_10e2aa
- Hi,
... ... ... I'm using the Vidual C++ Compiler... I have a PRECOMPILED HEADER FILE... I just don't know how to make it part of my programs... How do I instruction the Visual C++ Compiler to include and use the Precompiled Header File so that I won't have to go over all the codes all over again... I think if it's a Precompiled Header File, it's probably a whole bunch of the codes that I've
-
- Inconsistencies in overriding private function (bug?)
by Jonathan Scott
- 8 Replies
- Last post
by Jonathan Scott
- I have a class, "Facade", which has two private members. One returns void, the other returns a pointer to another class.
virtual void doProcessing(); virtual ResultSet* processPolicy(Policy* policy, boost::gregorian::date evaluationDate);
I have two derived classes, class A overrides doProcessing(), class B overrides processPolicy().
I noticed that A's doProcessing() will get ca
-
- Disabling the CRL (Visual C++ 2003)
by Matt.J
- 13 Replies
- Last post
by talewisx
- Hi,
I would like to know if it is possible to disable VC++ from implementing the CRL, hence preventing my code
being compiled with the inclusion of (hidden) calls to the runtime library as I have no need for it.
I don't use features that depend on the CRL, such as classes, and have resorted to 'dropping in' assembly to prevent the use of the CRL as much as possible.
Tha
-
- How to register a hot key by using scan code
by szsho
- 2 Replies
- Last post
by einaros
- Is there any way to register a hot key by using scan code
Since RegisterHotKey() only accepts virtual key code as the fourth parameter, apparently I need to convert the scan code into a virtual-key code. However, unlike other extended keys, that cannot be done because the key I want to monitor does not have corresponding virtual key code. I tried MapVirtualKeyEx() to convert the scan code, but
-
- VC++ Dll with lots of library symbols???
by VB Worker
- 2 Replies
- Last post
by Bite Qiu - MSFT
- I am writing a VC++ dll with dll export functions, and when i compiled it and checked it with a debugger, all my exports were there, but there were also hundreds of these library symbols. Is there any option i can tick or anything i can do to get rid of this
-
- dwmapi dependency when IE7 is installed
by DanL_DeLorme
- 2 Replies
- Last post
by DanL_DeLorme
- I have a COM file in a project that when I run on Windows XP without IE 7 installed, installs correctly. When I run this on Windows XP with IE 7.0 installed then the ocx file will not register properly due to a missing dependency - dwmapi.dll.
Looking at the file in dependency walker shows that this function is called from IEFRAME.DLL. The error message states that At least one module
-
- Vector of an Object - [Solved]
by ShiZero
- 8 Replies
- Last post
by Simple Samples
- Hey everyone.
Solved - Read at the bottom
I'm usually not prone to ask for help with my coding issues, mainly because I'm at a very basic level of C++ programming and, so far, I've managed to find the answers to what I need after a bit of researching, both online and through my books. But this time, everything has failed me. Perhaps because it's a rather specific subject I'm asking a
-
- 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