|
I want to make an Active X ctrl that communicates with a device and then sends data to main program. I want to know that Does activex work as seperate process. Does main program waits on ActiveX ctrl or I can do sperate processing simultaneously in my main program.
Thanks in advance.
|
|
|
|
|
As the name ActiveX CONTROL suggests that it is a control you will need something (some app) to host it. You can call the activex's functions from the host which can be an executable.
ActiveX doesn't work as a separate process.
Does main program waits on ActiveX ctrl or I can do sperate processing simultaneously in my main program.
This depends on the implementation.
You talk about Being HUMAN. I have it in my name
AnsHUMAN
|
|
|
|
|
|
I am using vc++ 6.0. I Have made an unlicensed activex ctrl application from app wizard (MFC activeX ctrl wizard for generating random drawing). When I am testing this Activex by ActiveX control test container, all functions are working fine, but when I am testing it with dialog application, On calling any method of ActiveX it is giving error debug assertion failed. Program ......
File: winocc.cpp; line: 345
I am making an object of this ActiveX ctrl wrapper class in my testing dialog application and then calling method defined in this ActiveX ctrl.
My code:
CNewSquiggleAcX m_ClNewSquigg;
CFileDialog m_ldFile(TRUE);
// Show the File open dialog and capture the result
if(m_ldFile.DoModal()== IDOK)
{
CString m_sResults;
m_sResults = m_ldFile.GetFileName();
//m_ClNewSquigg.GetSquiggleLength();
m_ClNewSquigg.LoadDrawing(m_sResults); // Error comes in this line calling any activex function
}
Calling any method of this self created unlicensed ActiveX ctrl is giving error.
Please help.
|
|
|
|
|
I need to achieve a functionality but do not know how to start please guide:
Functionality:
USB Data Card (like internet data card) is attached with system A, system A is recognising device as USB device but I need to use that card using system B which is having all drivers of data card.
How to achieve it?
|
|
|
|
|
You cannot have the device in one system and the drivers in another.
Use the best guess
|
|
|
|
|
you should try to understand how mouse works on another remote desktop from your system.that may help.
|
|
|
|
|
Hello Everyone,
I need a function to implement zero copy approach.Can anyone provide me some examples or suggestions about this?
|
|
|
|
|
|
i have already searched but couldn't find any example.If you don't know plz don't give me stupid answers.
|
|
|
|
|
|
Please don't be silly trying to be rude.
Veni, vidi, vici.
|
|
|
|
|
sorry for being rude.but I have gone through many links but couldn't find any useful link.can you suggest me some links or examples.
|
|
|
|
|
You must've missed this link that Richard (indirectly) provided in his initial reply.
"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
|
|
|
|
|
For Windows, see here. For Linux, see here.
"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
|
|
|
|
|
When I try to compile a piece of code using the Intel Compiler, I get this error:
error: declaration may not appear after executable statement in block
I know I shall have all the declaration at the beginning of my code, but I'm eager to know why this should raise an error. GCC and the VS Compiler didn't give any errors.
Thanks in advance.
modified 17-Jun-13 15:04pm.
|
|
|
|
|
Can you show us a minimal code that shows the error ? or the exact line of code with a couple of line above and below the line that gives the error?
What does the Intel compiler help says about this error ?
Nihil obstat
|
|
|
|
|
This error is given even at some simple situations, like this:
int i = 0;
i = 0;
int j;
error will be given on the variable j declaration. Compiler doesn't give any further information on the error.
|
|
|
|
|
Are you compiling C code with a C compiler ?
Nihil obstat
|
|
|
|
|
Yes I do. The problem was with the C language standards specifications, as Mr. CPallini said. I tried compiling with GCC with
-std=c89 -pedantic argument and it warned me of mixed declarations and code.
|
|
|
|
|
Actually (if I got you) Visual C++ compiler gives an error if a variable declaration is below an executable statement in block (The same compiler, of course, does not give an error if is compiling a C++ source code).
GCC does not give errors because it accepts such declaration as an 'extension' (see, for instance "Variable declaration placement in C" at Stack Overflow[^]). Note that C99 standard allows such kind of declaration but Visual C++ (and possibly the INTEL ) compiler is not C99 compliant.
Veni, vidi, vici.
|
|
|
|
|
No debuggers, well, none here anyway, and none as good as I have used on Windows, so it is printk() debugging. A 20 minute full build needed to get any new code in and then it takes 10 minutes to reflash the OS image on the device.
Never have I been forced to work so slowly.
Windows? Different matter. Windbg, live embedded debugger, automatically sucks the newly built module off the host when the target boots, public symbols, full stack and disaasembly on a crash,
I am going to have to put something together for linux/ARM like Windbg....
==============================
Nothing to say.
|
|
|
|
|
Well, it looks you are building the kernel, that's not a breeze even on desktop machines (and you simply could not build the Windows one).
Anyway, what has it to do with the C++ forum?
Veni, vidi, vici.
|
|
|
|
|
Ha, this is a C forum too, so there!
Actually all I want to build is a module, but I am forced to build the kernel, unlike windows.
Anyway, it has taken me a week to find a relatively easy bug, the driver is badly written. I would have got it on windows in a few hours. Thats the difference I am talking about.
==============================
Nothing to say.
|
|
|
|
|
Linux has kernel modules. They don't fit your needs, do them?
Veni, vidi, vici.
|
|
|
|