|
Peng wrote: I added a test project in the dll workspace, but having difficult to reference the dll from the test project.
for referencing you have to import that dll in your test project, try #import "DLLNAME"
"If it were machines, the pair_programming seem to work, but for humans it is pair_crackdown that seems to work! " - Nisamudheen
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi,
I am trying to follow the example by creating a test project, I first followed atl/com wizard to create a test.cpp file, the wizard generated and file that includes a line of code #include "test_i.c", and then before I go any further an error says "fatal error C1083: Cannot open include file: 'test_i.c': No such file or directory
Error executing cl.exe" while I try to compile it.
Any ideas about this error?
Thanks in advance.
|
|
|
|
|
try rebuild all
"If it were machines, the pair_programming seem to work, but for humans it is pair_crackdown that seems to work! " - Nisamudheen
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Figured it out, had to compile .idl file first.
|
|
|
|
|
That's why i told you to rebuild...\
please vote for article,
Thanks
"If it were machines, the pair_programming seem to work, but for humans it is pair_crackdown that seems to work! " - Nisamudheen
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
I have opened a new project, as you suggested tried to rebuild all but getting
fatal error LNK1103: debugging information corrupt; recompile module
Error executing link.exe.
Any ideas?
Thanks
|
|
|
|
|
can someone tell me , why we need to Fire_TotalMarks () ?
my application works without it ...:->
|
|
|
|
|
PerryJoe wrote: , why we need to Fire_TotalMarks () ?
my application works without it ...
How your application getting event notification!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi Alok,
i have followed the steps as you shown.
but when i was including "this->Fire_TotalMarks(this->m_iTotalMarks);" in my code . there was some error of no definition found [the error was correct as there was a no such declaration/defn of method].
then i tried to remove that line and run my application.
and it was running ..
i dont know how i am getting event notification as i am new to this environment.
[ this may be the case as i am using VS 2005].
Thanks for the giving simple way of creating ATL COM application.
|
|
|
|
|
I have created a sample ATL dll same as the one in this article to work with vc++ client. and it works fine.
I created an object as
ISimpleObjPtr sObj("SimpleComAtl.SimpleObj");
in a win32 console application, can you tell me how to set the handler for the event fired on Calculate?
thank you.
-- modified at 8:54 Thursday 30th August, 2007
|
|
|
|
|
invinJerry wrote: in a win32 console application, can you tell me how to set the handler for the event fired on Calculate?
http://www.codeproject.com/com/TEventHandler.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
hai,
this is a very good article..thanks.
Iam developing an IE toolbar in VC++ 6.0 ATL COM . my toolbar looks only in classic style .I wanted to get it in XP style. I tried many things, but still no success. I used manifest files and did things explained in http://www.codeproject.com/w2k/xptheme.asp. Please give help..
IE toolbar help
|
|
|
|
|
I followed ur article..
and developed a ATL project.. in VS2005
that fires an event as ur Totalmarks using Fire_Totalmarks.
i need to use activeX object in Javascript
I called this activeX from javascript..
properties and function calles are doing fine..
but event does not work... either it is not invoked or caught
then i used ur SimpleAtlCom ATL project.. ..
but i didnt work too..
is there a problem in my javascript code.. or .. developing ATL project...??
Here is the activeX object declaration and event handle
alert('here');
<object id="SIMPLE" classid="clsid:{27BF0027-BECC-4847-AF91-99652BCE9791}">
-- Nahian
-- modified at 0:29 Monday 16th July, 2007
|
|
|
|
|
i have know idea about javascript so can't help!
"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
Support CRY- Child Relief
|
|
|
|
|
Hi,
I have created a simple ATL 3.0 Composite Control. However, when I register it manually and then embed it in my web page (html) , it displays the control and when I unregister it and access the web page it doesn't show the control .
My question is, is it not that the ATL control is self registering control? Or do I need to register it with some code??
If so please let me know about it ....
Do I have to do any additional coding to enale accessing of control through client web pages when I host it in the server??
thank you.
Regards,
Srikanth
|
|
|
|
|
Hi.
Could you show us the exact same thing, but with another exportable ATL component (for example, IComplexObj) that would have a SimpleObj as a member property, and that would also be usable in a vb/vba code ?
I have a very hard time doing that...
|
|
|
|
|
Hello Mr ThatAlok and Thank you for your article I have a question or better have an error Im tring to making a project step by step with your article but on figure 11 when Im clicking on Add Connection Point or Impelement Interface and select my Interface of left listbox to right listbox and click finish I cant see CProxy_(that is my interface) or better I said wizard dosen't make this class How can I solve this problem (Im using vs2003)
Thanks
|
|
|
|
|
messages wrote: How can I solve this problem (Im using vs2003)
i have implemented this project with VS6 in my mind.. but i will check it on Vs2003 and revert back withthe answer soon!
"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
Support CRY- Child Relief and you
|
|
|
|
|
I thankful and Im wating for your answer I have many problem with atl articles because they are for VC6.0
Thanks
|
|
|
|
|
Hello sir..,
I got error in vb project like "Active X control is not created" when i run the project.....I have fully obey this code but still not able to get output
Please help me .....Waiting for reply....
Thank you for reading this message
alpa shah
|
|
|
|
|
alpa shah wrote: I got error in vb project like "Active X control is not created" when i run the project.....I have fully obey this code but still not able to get output
seems problem with dll!
"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
Support CRY- Child Relief and you
|
|
|
|
|
I need the reply soon.
pls send it quickly.
My email id is tinapatel29@yahoo.com
thanx
Tina
|
|
|
|
|
xdeveloper_del wrote: How to send ATLDLL to VBA(Visual Basic Application )?
[Click for User Profile] xdeveloper_del 1hr 54mins ago
I need the reply soon.
pls send it quickly.
Will CreateObject() help?
"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
Support CRY- Child Relief and You
|
|
|
|
|
_ISimpleObjEvents is not displayed as an interface, and is only displayed as a class, so I can't automatically add the "Void TOTAL([in]short marks)" method to the interface. How should the second part be done in VS2005?
|
|
|
|
|
gilzig wrote: How should the second part be done in VS2005?
I havn't seen VS2005 yet, when ever i got my hand on it.. definately there will new article posted on same topic for vs2005 users
|
|
|
|