I want to convert WinMain's cmdLine argument to argc and argv so I can use the argument parsing function I wrote for console applications.
This would be trivial except that I want to support "quotes" too. For example:
test.exe test1 test2 "testing testing"
should be
argv[0] = "test.exe"; argv[1] = "test1"; argv[2] = "test2"; argv[3] ...
Hello!
Is it possible to create MSI package, which will run without Windows installer installed in system, but first will install Windows installer itself, and then continue installing other components?
The goal is to create prerequisite package for our software, which must install some components, including some operation system servic...
Is there a "proper" way of clearing a screen in C for a console application?
(Besides using:system("cls"))
...
When I use the alt attribute with img tag in Safari on Windows, instead of displaying the alternate text, Safari only shows a "?" in a box. Is this a bug in Safari on Windows, or Safari is missing this feature.
...
hi guys,
could you please explain to me the WINAPI word in winmain header ?
in the simpliest way..
#include <windows.h>
int -->WINAPI<-- WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK);
return 0;
}
is it just some windows f...
I want to add "Yes" and "No" buttons to my window. It's a bit similar to standard MessageBox, so I would like to use localized strings in these buttons. I.e. "Yes" and "No" should be written in OS's current language.
How can I do this?
...
Which interface should I use to control the volume of my application on Vista or Windows 7?
The programming language doesn't matter.
...
hi ,
I've written a server programm lets call it progie , this progie working just like a clock on my windows 7 (my ms VS is installed on windows 7) after compiling the progie and transfer it to windows server 2003 I tried to run the progie but no chance.
here is the symptom :
when i was trying to run the progie I was also monitoring ...
I would like to know what's the difference between the program developed in C++ under windows and linux. Can anybody tell me why the program developed under Windows in C++ can't be used under linux?
...
I have a asp.net application with Nihbernate setup, now I want to convert it to Windows form application.
Here is the code which have been setup in the Global.asax.cs. Can anyone give me some code sample how to do this in Windows form?
protected void Application_BeginRequest(object sender, EventArgs e)
{
ManagedWebSessio...
I dropped my laptop while Windows was preparing to hibernate and as a result, I got a head crash on the hard drive. (Teaches me to get a hard drive and/or laptop with a freefall sensor next time around.) Anyway, running SpinRite to try to recover the data has resulted in all the spare sectors on the disk to all be all used up for all the...
In what language can I write a quick program to take screenshots and also possibly emulate a keypress?
I have an animated/interactive flash movie that is a presentation. I want to take a screenshot after I press a particular key.
The end effect is a bunch of screenshots that I can print...basically captures the key moments in the flas...
It seems that calling a P-Invoke while the App is not completed loaded make it spew the errors of the related functions.
For example at the moment I'm trying to load at startup various DLL through LoadLibrary and test if they have exported a particular function.
If I do that while the app completed its load procedure no error are give...
I'm using the following code to drag&drop data from listbox into other applications:
Dim data As New DataObject(DataFormats.UnicodeText, ListBox1.Text)
ListBox1.DoDragDrop(data, DragDropEffects.Copy Or DragDropEffects.Copy)
How can I get a handle of the window that receives the data?
I'm looking to build something like "Finder...
Why does the following code throw an exception when getting to the second scanf_s after entering an number to put into the struct.
This by no means represents a complete linked list implementation.
Not sure how to get onto the next scanf_s when having entered the value? Any ideas?
EDIT: Updated code with suggested solution, but still ...
Hey,
I had a problem with the limitation of paths
Here for example I run this command... :
String[] cmd = new String[]
{"command.com","/C",
"Resource\\gcc.exe",
"-E",
in_path,
">",
...
Here is my situation:
I have a C project linking with many libraries (I haven't written this application), and it is shipped also with MSVCR71.dll and MSVCP71.dll. Even without those DLLs, the program has run fine on my system, which has MS VS2005 installed (indeed uses MSVCR80.dll and MSVCP80.dll).
I've linked this application with ot...
Is it possible to intergrate into windows update to update your own applications?
I have heard of "ClickOnce", however from what I understand of it so far; it is still the responsibility of the application developer to manage the updates.
I am invisaging a similar user experiance to how an end user may update an application in a Linux ...
i have downloaded a website i have created and
want to find the domain name and replace it with a new one without having to open each file.
I use EditPlus
Is there any editor that can do this or do you know how to do this in windows or editplus?
thx
...
I am learning C# and WPF and had an idea for a little utility. I want a big red button that will do only one thing: completely mute/un-mute all Windows sounds (system beeps, WMP, DVD player, etc...) I've explored the object browser in VS 2008 but can't seem to find what I need: A mute that will affect all of Windows.
Is it System.Window...