|
Hi,
yeah it is type casting only but I want to know how the compiler knows to what type it has to type cast ..... and if it knows how does it do it ??
|
|
|
|
|
This process is known as integral promotion. If you look up the phrase "integral promotion" on the internet you'll find the information you're looking for (I think).
Steve
|
|
|
|
|
Well, everybody knows that program works with files very slow, so when i worked with windows API functions and MFC i just download whole file in the memory, and using the class CMemFile worked with it as with the stream.
Now i want to work with files using iostream classes (ifstream). But i don't know how to do the same.
Does any body know the way?
|
|
|
|
|
Does VC Support XML Documentation Comments?
Are there any good tools for generating documention from the source automatically?
Thanks for help
- A programmer's national anthem; "AAAAAHHHHH!!!!"
|
|
|
|
|
I don't think it's supported.
|
|
|
|
|
I have created a service with SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS attributes. This service will send some messages to a GUI application window via the Windows FindWindow() function. The service can find the GUI application window on Windows XP, but not on Windows 2000 and 2003 - the error obtained when calling the FindWindow() function is "Overlapped I/O operation is in progress (0x3e5)". However, on Windows 2000 and 2003, the GUI application manages to get the messages when the service was run as a program from the command prompt. I need to have the service working on Windows 2000 and 2003 as well. What is the root cause and is there any workaround for this? Thanks.
|
|
|
|
|
FFKONG wrote: ...via the Windows FindWindow() function.
Are you searching for a window's caption or its class?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
|
|
|
|
|
FFKONG wrote: . The service can find the GUI application window on Windows XP, but not on Windows 2000 and 2003 - the error obtained when calling the FindWindow() function is "Overlapped I/O operation is in progress (0x3e5)".
Some time if any windows get HUNG... and you try to find it handle, this may result in similiar error
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I want to write a program, while it runs, a window shows the hardware registers ax,bx.... just as the debugger does!
Is there a handy control to show registers?
|
|
|
|
|
This is going to be a program that will depend on your hardware, but I guess you are aware of that.
The simplest way IMO is to use an __asm section and assign the register values to local variables, that you then display.
~RaGE();
|
|
|
|
|
Hi
I am creating a new ActiveX from an existing ActiveX. I just creted class id using GUIDGen.exe and compile the project. But the new control is not downloading to machine where the old control present.
Do we need to change the class name of ActiveX too?
How to chnage the class name? There are many existence of class name in the project? Please advise..
|
|
|
|
|
Hi!
Within a tab control, I am creating a window that has multiple windows embeded in it. The trouble is that I have never figured out how to set bounds on a given window so that it only takes up a piece of the window it is embedded in. I have tried using a frame, but I could not get it to work. If I could just see the code of a sample application where within a given window there were multiple windows inside it, where the bounds of the internal windows were set at compile time, I think I would know how to immitate it.
Thanks for your consideration in this matter.
Sean Zlatnik
|
|
|
|
|
I guess the better question to ask is how to calculate what the coordinates should be. It is nice when you can build it as a resource in the resource editor, but you can't do that with dialogs contained inside a tab control. Is there a better way than 'guess and check'?
Thanks,
Sean
|
|
|
|
|
Hi, I want to fire all the Html element events taking place in "Internet Explorer" in my VC++ application Use the following code fragment to obtain an event handler
//get IHTMLSelectElement
IHTMLSelectElement* pselectelement=NULL;
spSelectElement->QueryInterface( IID_IHTMLSelectElement,(void **) pselectelement);
//Retrieves a pointer to the event handler function associated with the
//onchange event on the SELECT element, but i can't get it
VARIANT * p=NULL;
pselectelement->get_onchange(p);
HTMLSelectElementEvents* pselectelementevent=NULL;
pselectelement->QueryInterface( DIID_HTMLSelectElementEvents,(void **) &pselectelementevent);
//get_onevent function can be found in msdn but can't seek in headfile MSHTML.H
((IHTMLElement*)pselectelement)->get_onEvent( &_variant_t(pDisp) );
if (pselectelementevent)
// fire event
HRESULT hr=_com_dispatch_method(pselectelementevent,
0x3e9, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
help me ! sos
TKS
VICTOR.ZOU
-- modified at 3:15 Tuesday 21st February, 2006
|
|
|
|
|
So what is your question ?
~RaGE();
|
|
|
|
|
my question is the code fragment don't work, I can't get event handle ,and can't fire the event
|
|
|
|
|
class EXPORT_MY My : public CScrollView
There are a lot of warnings
C4273 inconsistent dll linkage. dllexport assumed.
and errors
C2491 definition of dllimport static data member not allowed
How to export correctly?Thanks.
|
|
|
|
|
can any one please show me a working example of how to convert doubles into
string and combine them,
like
double a=0.1;
double b=0.1;
String c;
I want to display something like "0.1 + 0.1 equal to 0.2"
Thanks
|
|
|
|
|
CString cstrResult;
cstrResult.Format("%f + %f equal to %f", a, b, a + b);
cout << cstrResult;
Can these code solve your problem?
|
|
|
|
|
I guess haian2442's answer will most certainly please your teacher.
|
|
|
|
|
It definately will
haian2442 you are the man.
|
|
|
|
|
blang0477 wrote: It definately will
Just be sure to give credit where credit is due.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
|
|
|
|
|
I am simulating 5 independent units transmitting from a single port out. Each of them has to have a maximum time window of 2250ms and also able to stop transmitting once they have transmitted all their messages.
How do I make them transmit for a maximum of 2250ms?
|
|
|
|
|
You can use a timer.
~RaGE();
|
|
|
|
|
I've never used the datasets and tableadapters in visual studio before and I'm having some trouble trying to figure them out. Right now it's going like this. I have a strongly-typed dataset on my form, I also have a bindingsource that's bound to the dataset and my database table, this created a tableadpater for me. Now because some columns in the database are just id's that the user doesn't need to know about I don't have controls for them on my form. My question is how to I update this information in the dataset so that it's populated back to the database? I'm trying something like this, but I know it's not right.
Guid guid = Guid.NewGuid ();
myDataSet.myDataTable table = myTableAdapter.GetData ();
table.idColumn = guid.ToString ("N");
myBindingSource.EndEdit ();
myTableAdapter.Update (this.myDataSet.eps); I think the basic question is how to I update/insert/delete on a strongly-typed datatable from within code?
I know this isn't the C# forum, but I'm not getting any answers there. If you want to give me some solutions or help in C++ I'm fine with converting it over. Thanks for any and all help.
- Aaron
|
|
|
|