-
- MFC dialog how to get background color
by abcdefgqwerty2
- 4 Replies
- Last post
by abcdefgqwerty2
- I want to get the background color of an mfc dialog form because my program draws on the form and to erase it I need the color of the dialog. Right now im erasing in black and it looks stupid it would work perfectly but I have no clue how to get the grey background color of the dialog. Anyone know Im pretty new to MFC I think c# is a bit easier to use.
-
- Disable Build Log
by johnmarco
- 4 Replies
- Last post
by johnmarco
- Is it possible to disable the creation of the build log I never read this log and I hate waiting the extra .0000005 seconds for it it to write. I'm talking about :
Build log was saved at file://c:\Documents and Settings\UserName\My Documents\Visual Studio 2005\Projects\CS2\Lab_2\Debug\BuildLog.htm
-
- Base 64 Encoding and Decoding
by Kennet
- 14 Replies
- Last post
by Simple Samples
- Hi! Folks
I have tried to decode a string I have made using the encoder/decoder from;
Sample Base 64 Encoding and Decoding
Article ID: 191239
Revision: 3.0
http://support.microsoft.com/kb/191239
There¡¯s no problems using the encoder from Base64Coder everything works smoothly. Problems occur when I try to decode the string I've just made. This is what I d
-
- How can i list all files in a given drive name?
by neeocis
- 4 Replies
- Last post
by neeocis
- Hi experts, I am new in drive development programming. Can anyone help me how cud i list all files by given a drive name Example: Input Drive name : H Output list.txt help.jpg some_folder_name .... .... some.txt Thanks in advance Br, Tanveer
-
- weird link error when changing a self defined macro, help!
by Luo Cao
- 5 Replies
- Last post
by Sdi
- I got a weird link problem here. First, originally there was a macro at myerror.h,
#define GETERRORNUMBER() { \
GetLastError(); \
}
This worked well all the time.
Then I wanna add a custom method to it, and it should be
#define GETERRORNUMBER() { \
int number = 0; \
number = GetLastError(); \
setMyErrorNumber(number); \
}
And setMyErr
-
- VS .Net 2005, how to disable intellisense...
by ChandraP
- 14 Replies
- Last post
by Boris Jabes
- Hi I am really frustrated with the performance of VS .Net 2005. This is because I always see at the bottom "updating intellisense..." and it uses 60% to 70% of CPU. How to disable this updating of intellisense... Please this is making Visual studio unusable. Thanks Chandra
-
- Beginning C++
by escanive
- 10 Replies
- Last post
by itchy-intermediate
- Hi,
I'm 16 years old and I want to start programming in C++. I have decided to use Microsoft Visual C++ Express to compile with. My goal is to make my own 3D game, but I know there are many years before I can do that.
The first thing I want to do now is to create a simple Console program saying "Hello world". Like this one I found on Wikipedia:
#include < iostream > #inclu
-
- Beginner Windows Forms Question
by kater7
- 11 Replies
- Last post
by Jonathan Caves - MSFT
- Hi,
I am a noob with the Visual C++ 2005 windows form applications. I have experience with simple C++ and VB code. What I am trying to do is manually convert current VB code (a very old version of VB) to Visual C++ 2005. I chose to use the windows form applications because the user interface would be vary similar to that of the VB code. This code is suppose to ping the serial port for inf
-
- C++ LINKING problem: unresolved typeref token (image may not run)
by JGLP
- 2 Replies
- Last post
by JGLP
- Hi ppl I have a cpp file inserted into my project called Data.cpp which has this kind of stucture: [Data.cpp] #include "stdafx.h" unsigned char numberPlaces= 8; unsigned char inSignalsValue[]; unsigned char numberInSignals[] = {0,0,0,0,0,0}; [/Data.cpp] I have no Data.h And i have another classe which uses this variables: [Cut.cpp] #include "stdafx.h" #include &l
-
- how to convert LPCTSTR to wstring
by pallabsarkar
- 4 Replies
- Last post
by Lê Khánh Thành
- I am working on xpcom, now problem is that the i have to pass the data from obserber function to my js but its shows the error of type mismatch tell me how to convert LPCTSTR to wstring
-
- Active-x Control
by Rajesh_Kanna_ab7e94
- 1 Replies
- Last post
by Brian Kramer
- HI Friends,
I am creating a Active-x Control. I am getting Problems Regarding the linking of Butttons In my Active-x Control. I need to know how to link these buttons in my Active-x Control.
Plz help in resolving my poblems.
-
- error C2665: 'operator new' : none of the 5 overloads can convert parameter 1 from type 'const char [71]'
by Rajith
- 14 Replies
- Last post
by HEBU
- When I try to compile the programe in VC7, I got some errors mensioned below, how to resolve them, suggest me.
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xmemory(34) : error C2665: 'operator new' : none of the 5 overloads can convert parameter 1 from type 'const char [71]' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\new.h(100): could be 'void *operator
-
- Setting EXE base address above 80000000
by Myria
- 4 Replies
- Last post
by crescens2k
- My 32-bit program is designed to only run on Win64. I set the /LARGEADDRESSAWARE flag in the linker options so that my address space becomes 4 GB. I want to put my .exe base address as 0xC0000000, but link.exe won't let me:
LINK : fatal error LNK1249: image exceeds maximum extent with base address C0000000 and size 0x1F000
I found an imperfect workaround, adding /DRIVER /SUBSYSTEM:CO
-
- Don't panic
by Crend King &#40;Old Pr
- 14 Replies
- Last post
by Matt Berry
- When I intend to manually load the user32.dll into memory, after loading the sections and calling its DllMain, an error message appears that the system dll was relocated in memory.
If I load it at its preferred ImageBase and thus do not do relocation, this error occurs. However, if I load it into a system choosed address (pass NULL to VirtualAlloc), no error occurs. I can confirm
-
- UpdateDate Debug Assertion Failed. dlgdata.cpp line 308
by transistor47
- 3 Replies
- Last post
by Simple Samples
- Hello everybody,
I try to execute a program which is developed in Microsoft Visual C++ 6.0 and appears the following error:
"Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found."
Besides I use the debug tool and it appears "Debug assertion file. dlgdata.cpp, line 308". When I use Call Stack Window and the error is produced for the
-
- How to customize the output format in C language?
by daniel mark
- 4 Replies
- Last post
by Viorel.
- Hello all:
I need to implment a function as follows:
Code Block
void PrintName(double d, int width)
{
// fprintf(stderr, "%.widthf", d);
}
for example:
Given d = 10.2345 and width = 3;
I want to use fprintf(stderr, "%.3f", d);
Given width = 1;
I want to use fprintf(stderr, "%.1f", d);
-
- Instantiantion of abstract class
by Yves1
- 5 Replies
- Last post
by Damien Watkins - MSFT
- I am not sure where I went wrong. I have extracted the additions in the *.cpp and *.h files.
: error C2259: 'PathDependentUpAndOutC' : cannot instantiate abstract class
In the cpp file:
"
//second one, Q2
PathDependentUpAndOutC::PathDependentUpAndOutC( const MJArray& LookAtTimes_,
double DeliveryTime_,
double Barrier_,
double Rebate_,
const PayOffB
-
- Upgrade to VS2005 gives problem with default Arguments
by ravi_nilesh
- 3 Replies
- Last post
by Jonathan Caves - MSFT
- I am sending the excerpt of the code. This Code is working Fine in VS2003 but it is giving the following error in VS2005 .
Code:
class LocalRuleNode
{
public :
void Init( const RULEMAP_IT itRule = NULL , const NODEINDEX tRuleNodeIndex = NODE_NONE, const PARSEDSIGNVEC_IT itParsedSign = NULL , RULENODETYPES rntType = rntype_none)
{
m_
-
- After linking the lib into a dll, one function is missing, any ideas?
by Luo Cao
- 2 Replies
- Last post
by Luo Cao
- The code is written in C.
The function is like this;
__declspec(dllexport) void func()
{ }
I use "dumpbin /symbols" to see the symbols in the lib file. The function is in it. But after linking the lib into a dll,
the function is gone, any ideas
Thanks in advance.
-
- Debug assertion on application creation
by Prateek_cds
- 4 Replies
- Last post
by TilakGopi
- Hi, When I create my application, i get the follwoing assertion from the CWinApp constructor :- AFX_MODULE_STATE* pModuleState = _AFX_CMDTARGET_GETSTATE(); AFX_MODULE_THREAD_STATE* pThreadState = pModuleState->m_thread; ASSERT(AfxGetThread() == NULL); Any idea what could be the reason I seem to have no clue stuck The application links to many user dlls and the assertion faliure occurs during t
-
- C2679: Error - Can someone help me resolve this ambiguity?
by Simulacrum
- 10 Replies
- Last post
by Simulacrum
- Apparently the compiler can't resolve an ambiguity here between these two assignment operators. What makes these two ambiguous with one another Why can't the compiler distinguish between a parameterized type my template class Is there a way to fix this so that I can get the intended functionalities I want here in all cases I want a copy assignment operator and of course I want the smart pointer
-
- Are Interlocked and Barrier Intrinsics Implemented Incorrectly on VC8?
by Rivorus
- 14 Replies
- Last post
by einaros
- Before I go into my huge rant, is there a way to prevent the compiler from reordering statements that will work for VC8 as well as older versions of VC I want to be very clear that I am looking strictly for compiler barriers and not memory barriers for the time being, since generating the appropriate memory barriers is easy enough to do in __asm blocks. Anyway, as the title suggests, in VC8 standa
-
- Remove a given value from a list
by daniel mark
- 7 Replies
- Last post
by Brian Kramer
- Hello all: Is this solution correct
void remove(Node **node, int v) { while (*node) { if ((*node)->value = v) { Node *tmp = *node; *node = (*node)->next; free(tmp); } else node = &(*node)->next; } } If this code is correct, I have the following question: why can we just free(tmp) without making the collection between
-
- mfcs80u.lib(dllmodul.obj) : error LNK2005: _DllMain@12
by bharath-k
- 10 Replies
- Last post
by yan11
- Hi everybody,
I getting two errors in my project.
a) "mfcs80u.lib(dllmodul.obj) : error LNK2005: _DllMain@12 " already defined in CMyproj.obj
b) fatal error LNK1169: one or more multiply defined symbols found
I am unable to resolve the error. Please help me in resolving this error.
TIA,
Regarads,
K. Bharath.
-
- How to create self signed certificateActiveX Control
by shankar_mca
- 2 Replies
- Last post
by shankar_mca
- Hi Can anybody help me i created a ActiveX control. when i accessing ActiveX control from my localhost my browser is blocking the control. it giving an error as "unknown publisher". how can i make my activeX controls as known publisher. plz help me