Tech Support > Microsoft Windows > Development Resources
The thing after the DOS Stub
Posted on January 9th, 2004 | 16 Comments

I was asking me the question... what is that unusefull thing after the Dos Stub of all exes generated with the Microsoft linker... now i'm asking that question to you.... What is it ? it's just...

TB_Customize dialog (hidden buttons removed stay gone)
Posted on January 9th, 2004 | 0 Comments

If I have a hidden/invisible toolbar button, and user "removes" it in the dialog - the button disapears completely from the dialog never to return again (i.e. you can see it disapear.. In the...

What is the difference: sprintf and wsprintf ?
Posted on January 9th, 2004 | 3 Comments

I keep thinking what is the difference between "sprintf" and "wsprintf" in terms of usage ? thanks.

find out if the app is run by admin
Posted on January 9th, 2004 | 13 Comments

Hi all, I have an application that I want to be run only by admin. So first thing I have to do is to find out if the current user is admin. I know that there is a Windows function to find this out,...

SetupDiGetClassDevsEx number of arguments in VC++ 6.0
Posted on January 9th, 2004 | 0 Comments

Hi, I'm having a problem with SetupDiGetClassDevsEx in VC++ 6.0. The documentation on MSDN says that this function should take 7 arguments. However, when I try to compile, I get the following...

close a windows app from VB
Posted on January 9th, 2004 | 6 Comments

Hi, Here's a simple one for you gurus - I want to close an existing instance of outlook from a separate VB program. I don't want to terminate the process without giving outlook a chance to clear...

ShellExecuteEx question
Posted on January 9th, 2004 | 5 Comments

Hello, I'm trying to spawn a process from my VC++ application, hide that process' window, and send the output of the process to a file. If I do this via a system call, a console window is displayed...

SetToolTipText doesn't seem to work
Posted on January 9th, 2004 | 0 Comments

I handle the TTN_NEEDTEXTA and TTN_NEEDTEXTW messages like: if (pNMHDR->idFrom == ID_RUN_MACRO_B) { ptt->SetTipBkColor(RGB(255,128,255)); // This works perfectly ptt->UpdateTipText("Another Text...

Writing Dlls
Posted on January 9th, 2004 | 11 Comments

How can I write a dll in win32 API? I know I won't need a .def file just a command like __cspecl(dllexport). But I don't know how to use it in code. Bill -----= Posted via Newsfeeds.Com,...

Can a Service process Window Messages?
Posted on January 9th, 2004 | 5 Comments

Hello, Can a Service process/handle Window Messages? For example, if the Service starts a new process, can the Service send and receive Windows messages from that process? How about if a window is...

exe failed to start
Posted on January 9th, 2004 | 2 Comments

Have an exe - MFC 7.1 Win 98 failed to run - "Wrong file format" Depends - ok Try to rebuild Release/Debug, static/shared MFC - nothing Create new project with the same settings - averything...

dll need help
Posted on January 8th, 2004 | 2 Comments

I am encounter some problem in linking dll and vb. I first create a dll file and and compile success in vc++ but when i link with vb it prompt me some error message.Can anybody please help me?The...

Problems with Audio Programming
Posted on January 8th, 2004 | 6 Comments

Hello All, I am writing a music recording application using C++ in the Windows environment and I am having some problems and I am wondering what the best practices are concerning sound...

Richedit and the new XP visual styles
Posted on January 8th, 2004 | 3 Comments

Does anyone know why richedit controls still displays the old 3D border around it, while all other controls do it in the new themed style? Any ideas to make a richedit control (any version) display...

ExitWindowsEx issue
Posted on January 8th, 2004 | 1 Comments

My ExitWindowsEx() works fine if I try to log off, but if I try to shut down or reboot it doesn't. There is no error or anything when I click the button it just doesn't...

UTF-8 char[] sequence to UCS 2 wchar_t sequence conversion
Posted on January 8th, 2004 | 3 Comments

Hi, I'm trying to convert an UTF-8 character sequence into wchar_t using MultiByteToWideChar API call with CP_UTF8 in the code page argument. The result wchar_t is not correct. I'm wondering if...

restart/reboot the computer
Posted on January 8th, 2004 | 2 Comments

Hi all, I have a tool that after it is finishes it's job the computer needs to be restarted. Is there a Windows function that I can call (for Win2k,xp,2003) that shows the restart dialog? (something...

CopyFile returns before copy is completed
Posted on January 8th, 2004 | 0 Comments

I have an application that basically does this (very pseudo-code): if( CopyFile( "temp.reg.$$$", "temp.reg") == ERROR_SUCCESS ) { RegOpenKey( h, MainKey ) RegDeleteKey( h, SubKey ) RegCreateKey( h,...

Throttling winsock transmission rate
Posted on January 8th, 2004 | 0 Comments

I have an application that receives data from one socket (Server A) and sends it to another server (Server B) through a different connection. In some cases, the direction can be changed. The issue...

Indexing service on LongHorn
Posted on January 8th, 2004 | 0 Comments

Anybody has technical info about Microsoft's indexing service on LongHorn ? Thanks.