First  |  Prev |  Next  |  Last
Pages: 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410
Rounding float value
I would like to round off a float value to one decimal place. How do I implement this correctly, so that, it would handle rounding up/down as required. For example, 5.41 becomes 5.4, and 5.45 becomes 5.5 ... 10 Apr 2006 01:13
ERROR_DLL_INIT_FAILED - HELP please
It might be something simple but I'm stuck with this error. VS2005 32-bit mode, C/C++ A lot of DLLs (about 2500) compiled just from the command line like this: cl /LDd progname.c The main program compiled under VS2005 and options for all C++ compile: /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Gm /... 25 Mar 2006 18:28
Terminating program with "exit( )"
Right now I'm using exit(0) to [attemp to] terminate my program. My program is a console .exe application. After the "exit(0)" line of code is encountered, the console application waits for an enter press, before terminating. I want it to terminate completely without having to press enter manually. Anybody know... 24 Mar 2006 14:08
BYTE* usage insted of void* as generic function parameter
hi all, I m stuck very badly, kindly help. i have a interface in vc++ exposing a method say fun() now i have to pass various strucutes to fun but i cant use a void* as IDL prohibits that so i used BYTE* like fun(void* variable) then in the method do the respective typecasting But problem creeps in ven i get th... 22 Mar 2006 23:40
CppCodeProvider.dll CompileAssemblyFromSource() throws a "not implemented" exception
Hi, I'm using CppCodeProvider.dll in a CLI/C++ application and I simply can't make it work with CompileAssemblyFromSource() or any other functions. Is there something special for C++ that I need to do that I don't need for the other languages, or is this just broken? Kind Regards Cláudio Albuquerque ... 20 Mar 2006 16:19
getting HWND from HINSTANCE
I call a ShellExecute like this and then I'd like to resize the window. How can I get the HWND from the HINSTANCE? thanks HINSTANCE result = ShellExecute(NULL, "open", MPEG4_DECODER, URL, NULL, SW_SHOWNORMAL); ... 20 Mar 2006 16:51
Convert std::string to char *?
std::string s; void func(char * str) {......} s.c_str() return const char * so func(s.c_str()) cannot be compiled: "cannot convert parameter 1 from 'const char *' to 'char *' Any way to work around it without create an additional variable? ... 15 Mar 2006 18:02
PostMessage question
Hi, I've got a question regarding the timing of PostMessage API. Consider the following code snippet: void Post () { PostMessage(m_hWnd, WM_USER+1, 0, 0); FunctionA(); } LRESULT OnMsg(UINT, WPARAM, LPARAM, BOOL&) { // message handler for WM_USER+1 FunctionB(); } My question is, between Fun... 15 Mar 2006 00:48
problem with picturebox
Hello, I am new in .NET and I am writing my first program in c++/CLI on MSVC 2005. I add a PictureBox to my form and then using its properties I change its image property to one image from my hard disk. it generate the following code for me: this->image1->Image = (cli::safe_cast<System::Drawing::I... 12 Mar 2006 15:06
dynamic creation of push button
hi.. i'm new in VC++ MFC can any one help me to create push button dynamically in dialog box with adding icon on it.. same as we have in TASKBAR ... 9 Mar 2006 15:32
First  |  Prev |  Next  |  Last
Pages: 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410