|
Write public methods in the child dialog class to get and set the state of the check boxes.
In the parent dialog, after the child dialog's DoModal returns, call the methods of the child dialog class to get the state of the check box.
While calling the child dialog in the parent dialog class, after creating the child dialog and before calling the DoModal function, call the child dialog methods to set the state of the checkboxes.
|
|
|
|
|
Hi,
Thanx for the response.
its done.
Regards,
|
|
|
|
|
does anyone know how to get the text of WordArt with VBA or C++
=========================================================
additional : what kind of object is WordArt? inlineshape? shape? or something else. 3ks very much.
modified 6-Aug-12 3:18am.
|
|
|
|
|
What has your question to do with the C/C++/MFC forum?
Veni, vidi, vici.
|
|
|
|
|
I'm sorry. I want to complete this function in C++. But I have no idea how to do it.
|
|
|
|
|
On click of a ribbon button menu whose member variable is declared at cRibbonView class i would like to know a way to change the text at the status bar(ribbon) whose member variable is declared at cMainFrm class.
Can please someone give a sample code too..
Thanks..
|
|
|
|
|
Hi friends
I have à sourcepakket of à console application That would be called
from command line with soms like
Appname 10 w 30
So THE name of THE app and three arguments
Now i want to write à Windows gui around this code with as little
effort as posibble by valling THE old main() from within this windows code.
But i do not knowhow how to parse THE argument. Supposedly i schuld set up argc and argc.
Can any one tell me how to do this?
Would save me à lot of work
Any help appreciaties.
|
|
|
|
|
You can do it quite simply via the system() [^] API call.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
If the application has any console output/input then using system() per the other suggestion would probably be the best choice.
If not and you want to call main() directly then just create an array with three entries ("10", "w", "30") and set argc to 3.
|
|
|
|
|
|
Try this.
#include <algorithm>
#include <vector>
#include <string>
#include <sstream>
typedef TCHAR tchar;
typedef std::basic_string<tchar> tstring;
typedef std::basic_stringstream<tchar> tstringstream;
typedef std::vector<tstring> arg_vector;
bool filter(char c)
{
return (c == '\"');
}
arg_vector cmdline_to_argv(tstring const & cmdline)
{
arg_vector args;
if (cmdline.empty())
return args;
bool together = false;
bool only_spaces = true;
tstring::size_type laststart = 0;
for (tstring::size_type n = 0; n < cmdline.length(); ++n)
{
if (cmdline[n] == '\"')
{
together = !together;
}
bool space = !!isspace(cmdline[n]);
if (space && !together)
{
if (!only_spaces)
{
tstring arg = cmdline.substr(laststart, n - laststart + 1);
arg.resize(std::remove_if(arg.begin(), arg.end(), &filter) - arg.begin());
args.push_back(arg);
}
laststart = n + 1;
}
if (space)
only_spaces = true;
else
only_spaces = false;
}
if (!only_spaces)
{
tstring arg = cmdline.substr(laststart, cmdline.length() - laststart + 1);
arg.resize(std::remove_if(arg.begin(), arg.end(), &filter) - arg.begin());
args.push_back(arg);
}
return args;
}
int main(arg_vector const & args)
{
tstringstream strm;
strm << args.size() << " arguments!\n";
for (arg_vector::size_type n = 0; n < args.size(); ++n)
strm << "Argument #" << (n + 1) << ": " << args[n] << "\n";
MessageBox(NULL, strm.str().c_str(), TEXT("Command Line Test"), MB_OK | MB_ICONINFORMATION);
return 0;
}
int WINAPI WinMain(HINSTANCE instance, HINSTANCE prev_instance, LPSTR cmdline, int show)
{
return main(cmdline_to_argv(GetCommandLine()));
}
|
|
|
|
|
hi all,
BEX runtime error occur in my application .
i dnt know why its comes and how can i resolve this?
please guide mr for this.
thanks.
|
|
|
|
|
As someone else told you the other day, you've been here long enough that you should know how to ask a sensible question. Until you do so, we can't help.
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Use your debugger, and your brain.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Hi,
This come because your code has error(s).
This will go away when you fix the problem.
I don't know what this BEX is you speak of - you've not put it in context!
It could be for BeX analyzer, it could be for BeX query designer, it could be for something to do with Excel. It could very well be for none of these! You already know, we can't possibly have any idea..
From the code snippet you (didn't) post, it's more difficult than impossible to tell. When you ask a specific question and provide sufficient background information, you'll (often) receive a specific answer.
As Peter said - you've been here nearly 5 years! Surely you can muster up the effort required to post a question that is able to be answered???
|
|
|
|
|
|
Le@rner wrote: please guide mr for this
sure, here[^] is your guide
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
Hello All,
I am trying to call the DisableProcessWindowsGhosting() method defined in user32.lib. But, it is giving linker error:
[exec] dobjedit.obj : error LNK2001: unresolved external symbol __imp__DisableProcessWindowsGhosting@0.
The library is included and linked in the project.
Can anyone please suggest the solution.
Thanks in advance.
|
|
|
|
|
What is the setting for your projects WINVER define? It should at least be 0x0501 (WinXP)
hth
Christof
|
|
|
|
|
I have a win32 application in that on EditMolecule Dialog there are three tab controls.First tab control opens atom dialog. On atom dialog, there is a custom combobox control, while user clicks on the dropdownlist of this control and waits for more than 5 seconds(in Windows7),the EditMolecule window becomes nonresponsive. The same application works well in windows xp. Can anyone please suggest the solution to this problem. Thanks in advance.
|
|
|
|
|
Your program has a platform specific bug somewhere and you have to debug it. The info you provided is far less than what needed to find the bug. This bug can be anywhere in your program maybe it isn't gui related at all.
|
|
|
|
|
may be a memory leak...
Try profiling your application for memory leaks
use windbg to point the hangs
You talk about Being HUMAN. I have it in my name
AnsHUMAN
|
|
|
|
|
It may be leaky, but that (if it's the case) doesn't sound like the problem.
Steve
|
|
|
|
|
we are not able to reproduce the issue using windebug. The debugger is not breaking.
Could you please suggest what can be the possible reason, because after attaching the process to debugger the issue is not reproducible.
|
|
|
|
|
Virendra_ec10 wrote: ...while user clicks on the dropdownlist of this control and waits for more than 5 seconds(in Windows7),the EditMolecule window becomes nonresponsive. So are you handling one of the CBN_xxx notifications?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|