|
The definition of "ActiveX Control" is nebulous but typically they include a UI. If the control has a UI then you probably need to create a window for it.
|
|
|
|
|
when using this got error no guid is attach,how to solve this
error C2787: '_DBAccess' : no GUID has been associated with this object
hresult=CoCreateInstance(clsid,NULL,CLSCTX_INPROC_SERVER,__uuidof(_DBAccess),(LPVOID *) &t);
|
|
|
|
|
Is it because the you haven't registered the object (your dll, OCX, whatever) with regsvr32.exe?
|
|
|
|
|
im trying to write 40 01 00 20 (hex) to the registry as a binary number it is writing but it come out as 32 00 00 00 can someone show me the right way
DWORD value = 40,01,00,20;
DWORD dwvalue = sizeof(DWORD);
RegSetValueEx(
hKey,
"Attributes",
0,
REG_BINARY,
(LPBYTE) &value,
dwvalue
);
"Attributes"=hex:50,01,00,20
ok i found that if i do it as
value = 0x20000150; it will put it in the registry as 50 01 00 20 why does it turn it around?
|
|
|
|
|
locoone wrote: DWORD value = 40,01,00,20;
How did you get that line through the compiler??
Try this:
DWORD value = 0x40 << 24 | 0x1 << 16 | 0x0 << 8 | 0x20;
Regarding:
"Attributes"=hex:50,01,00,20
ok i found that if i do it as
value = 0x20000150; it will put it in the registry as 50 01 00 20 why does it turn it around?
It's beacuse Intel CPU's uses little endian, which stores numerical values in a "byte swapped" order.
Other CPU's may use big endian.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
locoone wrote: why does it turn it around?
Should not bother you, as you should read it back correctly.
|
|
|
|
|
First of all, my program runs fine with samll-scale data set, but not with large-scale data set. The problem has stuck me for a long time. I do not know what caused the failure, the shortage of mem space or the bugs in my program.
I wonder what message will be presented when the mem space is exhaused?
I have got the following error message.
"This application has requested the Runtime to terminate in an unusual way. Please contact the application's support team for more info."
Anybody can list some possible reasons which may casuse this kind of error.
My project involves huge amount of data. I do not have any idea about this
-- modified at 23:58 Tuesday 19th December, 2006
|
|
|
|
|
cy163@hotmail.com wrote: "This application has requested the Runtime to terminate in an unusual way. Please contact the application's support team for more info."
One of the reason could be (as mentioned in MSDN)
This problem may occur when you use the /GR and the /MD compiler switches, and the version of the Msvcrt.dll file and of the Msvcirt.dll file is 7.0.x.
cy163@hotmail.com wrote: samll-scale data set, but not with large-scale data set
Another one could be that you would be using a pointer for which you haven't allocated memory or you could also be writing to an invalid memory location that would be causing your application to crash.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi,
I am trying to implement the sending and receiving of consecutive frames from ECU using CAN Bus using VC++.
The idea is to send the following frames
TX 02 1A 00 00 00 00 00 00
RX 10 08 2F 63 08 07 80 00
TX 30 00 00 00 00 00 00 00 (flow control frame)
RX 21 FF FF 00 00 00 00 00 (consecutive frames 1)
RX 22 xx xx xx xx xx xx xx (consecutive frames 2)
RX 23 xx xx xx xx xx xx xx (consecutive frames 3)
(i have to wait untill i recieve all the consecutive frames and then send the next request)
TX...
RX...
The problem i am facing is that the timeout is happening because of which i am not receiving the consecutive frames at all (acc. to my assumption). Also the flow control frame is to be sent within 5 ms. I am finding a problem here too.
Can you please help me finding a solution to the following:
1. How to send a flow control frame within such less time? I used timers also but this doesnt work.
2. I have to recieve all the consecutive frames and thus i have to wait till all the frames are received. How can i achieve this?
Please help me with this.
Await for ur reply at the earliest.
Sunayana
|
|
|
|
|
how to change maximum count of recent files?
default cout is 4?
|
|
|
|
|
Where? Visual studio? What version?
John
|
|
|
|
|
For VC 6, its at Tools-->Options-->WorkSpace .
For VS2k5, Tools-->Options-->EnvironMent-->General .
|
|
|
|
|
I mean, for my MDI app, not foe visual studio.
|
|
|
|
|
includeh10 wrote: not foe visual studio.
Always be clear while asking questions .
Locate LoadStdProfileSettings in InitInstance .
Pass no. that you want to keep as most recently used file as parameter.
i.e. if want 5 files , then LoadStdProfileSettings(5) .
|
|
|
|
|
how to enumerate MDI child windows?
|
|
|
|
|
|
can anybody help me to give simple steps to call "com dll function"....thank you
|
|
|
|
|
many many examples in VC samples
dynamic (by load library) and static (by pointer)
|
|
|
|
|
|
On google, it's called EXIF information, I ever tried to use CXImage to read the EXIF info that's ok.
But CXImage doesn't support write EXIF info into jpeg file.
Someone could give me any ideas?
|
|
|
|
|
Best give me a source code
dddsdfdd
|
|
|
|
|
Has anyone gotten this to work, I a have a simple project DLL using MFC no .rc files, I have defined _USE_RTM_VERSION for all source files, but when I compile I see two entries in the embedded manifest file, and it refuses to load in depends, and I get SxS errors.
How do you uninstall SP1, there is no entry in add/remove programs, VS2005 repair does not do it.....
|
|
|
|
|
see if this helps you out with the _USE_RTM_VERSION problem.
I think that if you want to uninstall VS2005 SP1, you have to re-install VS. I am not sure about that but thatis the only thing I can think of ...
|
|
|
|
|
Chocolate fire guard, I have googled this already before posting this Q....nothing for it uninstall and reinstall.
|
|
|
|
|
Hi all,
I want to add gui(MFC based) into a lib code.....so for that i followed the following steps
1) Created a new windows based console application with option static lib file selected n by allowing MFC support to the application
2) from the project add....i selected add resource n then created a CDialog based gui into it
Upto then everything is fine.....now here something i dont understand
1) wat r the .h and .cpp files related to gui do i need to include n wat code to write in (MFC generates all the code itself in a MFC based application so i m not sure wat to include or wat not to include)
2)I am able to link to lib in my program (proc) without error.....Now how do i invoke the gui in lib from my proc
I am taking commandline arguement from the user.....if user says enable gui as arguement....then gui shud pop up or else it shud not pop up
How do i achieve it.....
Kunal
|
|
|
|