¡@

Home 

c++ Programming Glossary: windows

std::wstring VS std::string

http://stackoverflow.com/questions/402283/stdwstring-vs-stdstring

things get tricky On Linux a wchar_t is 4 bytes while on Windows it's 2 bytes what about Unicode then The problem is that neither.. some combination of chars is forbidden in UTF 8. On Windows On Windows this is a bit different. Win32 had to support a lot.. combination of chars is forbidden in UTF 8. On Windows On Windows this is a bit different. Win32 had to support a lot of application..

WChars, Encodings, Standards and Portability

http://stackoverflow.com/questions/6300804/wchars-encodings-standards-and-portability

the same representation e.g. the PNG file I can read on my Windows desktop on my phone or on my toothbrush. Portable things are.. and use uint32_t char32_t strings internally with UCS 4. Windows While using wide strings is generally fine it appears that interaction.. works perhaps there should be a separate wrapper for Windows . File systems File systems don't seem to have any notion of..

How to generate a stacktrace when my gcc C++ app crashes

http://stackoverflow.com/questions/77005/how-to-generate-a-stacktrace-when-my-gcc-c-app-crashes

run by many different users and it also runs on Linux Windows and Macintosh all versions are compiled using gcc . I would..

Good C++ GUI library for Windows

http://stackoverflow.com/questions/115045/good-c-gui-library-for-windows

C GUI library for Windows I'm looking for good windows GUI library for C . The Ideal in my opinion shoud be Modern.. grammar errors. English is not my native language. c windows gui share improve this question I think you're writing Qt..

How do I get the directory that a program is running from?

http://stackoverflow.com/questions/143174/how-do-i-get-the-directory-that-a-program-is-running-from

the right headers unistd.h on Unix and direct.h on windows . Since you are creating a C program it will link with the default.. the basic standard compliant interface to the OS. On windows getcwd function has been deprecated in favour of _getcwd. I..

Calling C/C++ from python?

http://stackoverflow.com/questions/145270/calling-c-c-from-python

to construct a python binding to a C or C library using windows if this matters c python c share improve this question ..

How to use QueryPerformanceCounter?

http://stackoverflow.com/questions/1739259/how-to-use-queryperformancecounter

as its argument. Any assistance is appreciated thanks. c windows timer share improve this question #include windows.h double.. c windows timer share improve this question #include windows.h double PCFreq 0.0 __int64 CounterStart 0 void StartCounter.. return 0 This program should output a number close to 1000 windows sleep isn't that accurate but it should be like 999 . The StartCounter..

Output unicode strings in Windows console app

http://stackoverflow.com/questions/2492077/output-unicode-strings-in-windows-console-app

s stream s.c_str return stream c unicode iostream windows console share improve this question I have verified a solution..

How can a Windows service execute a GUI application?

http://stackoverflow.com/questions/267838/how-can-a-windows-service-execute-a-gui-application

currently active desktop and run the GUI on it c winapi windows services share improve this question Roger Lipscombe's answer..

C++ Timer function to provide time in nano seconds

http://stackoverflow.com/questions/275004/c-timer-function-to-provide-time-in-nano-seconds

FreeBSD clock_gettime CLOCK_REALTIME ts Works on Linux For windows you want to use the QueryPerformanceCounter . And here is more.. as stated in http msdn.microsoft.com en us library windows desktop ee417693 v vs.85 .aspx ...While QueryPerformanceCounter..

Windows threading: _beginthread vs _beginthreadex vs CreateThread C++

http://stackoverflow.com/questions/331536/windows-threading-beginthread-vs-beginthreadex-vs-createthread-c

consider when I'm using these functions I'm working with a windows application so cross platform computability is already out of..

What is the bit size of long on 64-bit Windows?

http://stackoverflow.com/questions/384502/what-is-the-bit-size-of-long-on-64-bit-windows

and otherwise do a check on the target CPU bitsize c c windows 64bit porting share improve this question In the Unix world..

C/C++: Capture characters from standard input without waiting for enter to be pressed

http://stackoverflow.com/questions/421860/c-c-capture-characters-from-standard-input-without-waiting-for-enter-to-be-pr

can however use a library for that conio available with windows compilers. Use the function _getch to give you a character without.. without waiting for the enter key. I'm not a frequent windows developer but i've seen my classmates just include conio.h and.. linux compatible curses implementations are available for windows too. It has also a getch function. try man getch to view its..

How can I get a list of files in a directory using C or C++?

http://stackoverflow.com/questions/612097/how-can-i-get-a-list-of-files-in-a-directory-using-c-or-c

not use boost I use dirent.h which is also available for windows DIR dir struct dirent ent if dir opendir c src NULL print all.. . I googled and found some links here The author of the windows compatibility layer is Toni Ronkko. In Unix it is a standard..

What's the best Free C++ Profiler for Windows?

http://stackoverflow.com/questions/67554/whats-the-best-free-c-profiler-for-windows

free. I know the Intel v Tune but it's not free either. c windows profile share improve this question AMD Code Analyst is..

Sleep less than one millisecond

http://stackoverflow.com/questions/85122/sleep-less-than-one-millisecond

return zero when successful and non zero for errors. c windows winapi sleep share improve this question This indicates..

How do I get the directory that a program is running from?

http://stackoverflow.com/questions/143174/how-do-i-get-the-directory-that-a-program-is-running-from

this fashion. #include stdio.h defines FILENAME_MAX #ifdef WINDOWS #include direct.h #define GetCurrentDir _getcwd #else #include..

Hide Console of c program in window OS

http://stackoverflow.com/questions/2422430/hide-console-of-c-program-in-window-os

specifying the subsystem and entry point via SUBSYSTEM WINDOWS ENTRY main arguments to link.exe . Use editbin.exe to change..

LNK2005: delete already defined error in VC++

http://stackoverflow.com/questions/2773168/lnk2005-delete-already-defined-error-in-vc

C Program Files Microsoft SDKs Windows v6.0A bin c WINDOWS Microsoft.NET Framework v2.0.50727 C Program Files Microsoft.. v2.0.50727 C Program Files Microsoft Visual Studio 9.0 C WINDOWS SysWow64 C WINDOWS system32 C WINDOWS C WINDOWS System32 Wbem.. Files Microsoft Visual Studio 9.0 C WINDOWS SysWow64 C WINDOWS system32 C WINDOWS C WINDOWS System32 Wbem c Program Files Microsoft..

The application failed to initialize properly (0xc0150002)

http://stackoverflow.com/questions/3537429/the-application-failed-to-initialize-properly-0xc0150002

SFML Debug SFML.exe' Symbols loaded. 'SFML.exe' Loaded 'C WINDOWS system32 ntdll.dll' Cannot find or open the PDB file 'SFML.exe'.. Cannot find or open the PDB file 'SFML.exe' Loaded 'C WINDOWS system32 kernel32.dll' Cannot find or open the PDB file 'SFML.exe'..

Why/when is __declspec( dllimport ) not needed?

http://stackoverflow.com/questions/4489441/why-when-is-declspec-dllimport-not-needed

s The server command line cl.exe Od D WIN32 D _DEBUG D _WINDOWS D _USRDLL D SERVER_EXPORTS D _UNICODE D UNICODE D _WINDLL Gm.. DEBUG PDB u libs Debug server.pdb SUBSYSTEM WINDOWS MACHINE X86 ERRORREPORT PROMPT kernel32.lib user32.lib gdi32.lib..

“Unable to find an entry point named [function] in dll” (c++ to c# type conversion)

http://stackoverflow.com/questions/653178/unable-to-find-an-entry-point-named-function-in-dll-c-to-c-sharp-type-con

recoData new cnOCRsdk.RECO_DATA string path @ C WINDOWS twain_32 twainrgb.bmp System.Text.ASCIIEncoding encoding new..

error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup

http://stackoverflow.com/questions/6626397/error-lnk2019-unresolved-external-symbol-winmain16-referenced-in-function

Properties Linker System SubSystem from Windows SUBSYSTEM WINDOWS to Console SUBSYSTEM CONSOLE This one helped me share improve..

How to Enforce C++ compiler to use specific CRT version?

http://stackoverflow.com/questions/730134/how-to-enforce-c-compiler-to-use-specific-crt-version

the CRT element. You can inspect the files at your local WINDOWS WinSxS folder to see the versions available. Check here how..