|
Some programs shows a messages on top of systray when some new updates are ready . How to show such an update message.
Thanks in advance
Take Care
|
|
|
|
|
|
Thanks for helping out
Take Care
-- modified at 18:35 Friday 24th February, 2006
|
|
|
|
|
Hello,
How can I change a hard-coded variable from another program with my program ?
For example:
Program A has this definition:
CString strTmp = "This is a Test";
somewhere in it's code.
And now I want with my program to change this variable to "This is another Test".
How could I realize this ?
With best regards,
Benedikt
|
|
|
|
|
You can open the file (as binary) with Visual Studio and search for the string literal. You can't, however, make it any longer.
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
Hello,
First off one quick question ... with the simplicity of scripts why go thru all the trouble to change hard coded varibles? A simple text file and a text parser is like magic sometimes
But as for changing hard coded variables, maybe putting the variable on its own thread and using a mutex would work. Or alternatively you could make one program take key input then use Shell Extensions to run that program inside another program and give it input from the second program.
Just a couple of random, probably nonsensical ideas, hope that helps
Jay
|
|
|
|
|
How to create program for linux
|
|
|
|
|
|
What is the best way for a control program to communicate with a system service that I am writing? I have seen that you can send a custom control code, but how can you pass parameters.
How is this generally done? Is it via registry entries?
|
|
|
|
|
I have used MSMQ with a lot of success. Or, you can use remoting from a server. I like the MSMQ solution better because it has built-in solutions to reduce data loss and it scales easily.
-- modified at 10:23 Saturday 18th February, 2006
|
|
|
|
|
Hi,
Need some help translating some structures from Pascal to C++.
Any help would be appreciated.
TWideText = record<br />
Text: array[1..20] of WideChar;<br />
Len: Byte;<br />
end;<br />
<br />
TWideComment = record<br />
Text: array[1..255] of WideChar;<br />
Len: Byte;<br />
end;<br />
<br />
TChar = record<br />
Pixels: array[0..9, 0..44] of Byte;<br />
RTop: Byte;<br />
Width, Height: Byte;<br />
Text: TWideText;<br />
Style: Byte;<br />
deleted: boolean;<br />
end;<br />
<br />
TChMatrix = record<br />
Modified: boolean;<br />
FileName: WideString;<br />
Comment: TWideComment;<br />
Char: array of TChar;<br />
end;
Patrik
|
|
|
|
|
Example:
struct TChar
{
unsigned char Pixels[10][45];
unsigned char RTop, Width, Height;
TWideText Text;
unsigned char Style;
bool deleted;
}; C array indexes always start at 0, so the code that accesses those 1-based arrays will have to change too.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
Thanks for the answer Mike.
What about WideChar and WideString? These must be data types in DelphiPascal?
WideChar = TCHAR?
So the first struct would be:
struct WideText
{
TCHAR[20] Text;
Byte Len;
}; But with WideString I have no idea.
//Patrik
|
|
|
|
|
I assume WideChar is a Unicode character, in C that is wchar_t . For a Unicode string, use std::wstring unless you're comfortable with C-style strings.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
Hi.
I'm trying to get the text from the text-editor of another process (VS.Net) but it return nothing.
This is my code:
<br />
HWND hwnd = (HWND)0x008803AC;
<br />
char Data[500];<br />
SendMessage(hwnd, WM_GETTEXT, (WPARAM)500, (LPARAM)Data);<br />
MessageBox(NULL, Data, "The Control Text", MB_OK);
<br />
any idia why the WM_GETTEXT doesn't work ?
Thanx
|
|
|
|
|
|
Thanks for the respond.
I've tried both ways: SendMessage and GetWindowText, although GetWindowText doesn't work for controls outside the calling process.
both return an empty string
Maybe this is because the text doesn't resides on that "special place" and the only way accessing VsTextEditPane is through the COM interface?
|
|
|
|
|
Virtek wrote:
Maybe this is because the text doesn't resides on that "special place" and the only way accessing VsTextEditPane is through the COM interface?
That'd be my guess.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
Hi,
I have created an MFC owner drawn control (Derived from CButton) that needs to do some initialization after it is created or subclassed. If the user explicitly calls MyCtrl.Create( .... ), I can handle the OnCreate() message in my control, so no problems.
However, if the user attaches the control through DDX, this results in SubclassWindow being called and OnCreate() is never called. I know you can handle PreSubclassWindow() before the window is actually subclassed, but I need to do some initialization after it is subclassed. So Is there anyway in my class to know after it has subclassed a window?
Thanks in advance for any help.
|
|
|
|
|
|
Say I have a binary resource / text file . Is there a way i can embedded this as part of my VC 6 created DLL .
Now I have a similar project which can be compiled as a static library . TO be able to access the resource (.rc)
I need to access the resources by obtaining the Application handle by doing something like
AfxGetApp()->LoadResource
For a static lib this will point to the application that links using this library . Is there a way I can still access my embedded resources ?
Engineering is the effort !
|
|
|
|
|
Sorry, I don't mean to hijack your thread but I have a similar question along the same lines.
I want to export a very small class into a dll, which would also contain a .rc file with 30 or so wav files. Most of the tutorials on this website are either just too complicated to understand or are MFC related. In simple terms, how do you create a win32 dll, containing a .rc file and and a class?
|
|
|
|
|
I'm not completely sure what your asking as the message as it isn't really clear...
If looking to load a resource from your library and not the calling executable you can use the GetModuleHandle[^] API passing NULL as the module name, this will then return a handle to your library. You can then use the LoadResource[^] API as per usual.
Gavin Taylor
w: http://www.gavspace.com
|
|
|
|
|
May I ask you all how to make an item moves randomly in a board game pls?
|
|
|
|
|
use rand() to generate two random numbers and set the coordinates of the window using SetWindowPos() .
That's all buddy.
*Of course you will have to set a timer to change the position in a specified interval of time
Wishes.
Anshuman Dandekar
Dare to Dream,
Care to Achieve.............
|
|
|
|