|
Hi,
I am trying to navigate to a particular web site and populate the web form fields from my MFC application.
BTW, this code works fine on W2K and XP/SP1.
Regards
SenPy
|
|
|
|
|
I have a problem, I am developing a ATL server/DLL of SQLite Database engine. I have created two COM class, (Connection and Recordset) to I can used how ADO tecnologies, but I haven't install MDAC ...
The problem is in class Recordset. I have MEthod STDMETHODIMP CRecordset::Open(BSTR SelectSQL, IConnection *Connection), because I have not access to public method class C++ CConnection, getHandleDatabase() that return handle to database opened. I have try CComObject<cconnection>* Conexion;
CComObject<cconnection>::CreateInstance(&Conexion);
Conexion->getHandleDatabase();
but handle = NULL ,,,
How I can access object C++ method of interface that pass how parameter 'IConnection *Connection'.
Sorry for my bad english
|
|
|
|
|
How can i check if a CLSID is valid or not without actually creating an object i.e without calling CoCreateInstance
and if CLSIDFromAppID function fails is it necessary that the AppID is wrong
thanks
|
|
|
|
|
You would need to replicate the steps that COM takes when looking for a COM server:- Convert the CLSID to a string
- look for a key with that name under HKCR\CLSID
- look for an InprocServer32 key (or LocalServe32 depending on the server type) key under there
- Read the default value of that key, which holds the full path to the server
- See if that file exists
- For in-proc servers, see if that is a DLL that exports DllGetClassObject().
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
Pinky, are you pondering what I'm pondering?
I think so Brain, but if we shaved our heads, we'd look like weasels!
|
|
|
|
|
Estamos identificando um profissional para atuar em nossa empresa com o seguinte perfil :
Programação em Visual C++ utilizando WTL;
Bons conhecimentos em programação Internet.
Disponibilidade para início imediato.
Os interessados deverão enviar currículo para rh@techway.com.br
Solange Gomes
Solange Gomes
|
|
|
|
|
inglês somente, por favor
--
Suche gut gebauten Achtzehn bis Dreißigjährigen zum Schlachten.
Der Metzgermeister
|
|
|
|
|
I need to wrap a native class for using it in C#
the class contain CString objects.
in old MC++ ver 2003 i write somthing like :
__property String * get_ImageName ()
{
return mBillPopJobParameters-> m_ImageName ;
}
__property void set_ImageName (String * pValue )
{
mBillPopJobParameters-> m_ImageName = pValue;
}
(m_ImageName is a CString.)
and it work ok.
when i try to use it in C++/CLI
property String^ ImageName
{
String^ get()
{
return mPrintSetParameters->m_ImageName ;
}
void set(String^ pValue)
{
mPrintSetParameters-> m_ImageName = pValue;
}
}
i get error that it can not convert from CString to String
any one know how to it right ?
Thanks.
Avraham Cohen.
|
|
|
|
|
Guys,
Newbie question, so bear with me, this is my first Windoze app ..
Part of a caf billing application, I need to lock the PC screen untill a signal is sent by the console/user name-password entered/time code entered ...etc.
I would ideally like to achive this without writing the client as a shell replacement. I had a look at HtmlLayout, and that sounds plausable.
Any ideas/views/directions ..etc ?
Thanks in advance.
Ahmad Ibrahim.
|
|
|
|
|
you can use the someting like a desktop switching like the one made by Nnamdi Onyeyiri [^] but with some minor modifications like remove 2 of the "shells", change the swicthing event to work with remote control... etc ...
I think is the simple way ...
and is .net ...
.NET is the next step to the end of programmer
|
|
|
|
|
Hello everybody,
I want to learn atl. I don't
know anything about atl please
tell me a good link or page about
it.
Best wishes.
thanks.
|
|
|
|
|
I am currently using
Begining ATL 3 COM Programming - by Richard Grimes -- Wrox Publication
I found this book to be good enough for beginning ATL
Hope this helps
-------------------------
Have a great day ahead!
Regards,
Sohail Kadiwala
modified 21-Apr-21 21:01pm.
|
|
|
|
|
Estamos identificando um profissional para atuar em nossa empresa com o seguinte perfil :
Programação em Visual C++ utilizando WTL;
Bons conhecimentos em programação Internet.
Disponibilidade para início imediato.
Os interessados deverão enviar currículo para rh@techway.com.br
Solange Gomes
|
|
|
|
|
Hi all,
I am trying to convert an existing DCOM component into a web service. I personally find DCOM is great but is of poor interest in a firewall-dominated world. My good old objects have EVENTS, and I exploited them in order to prevent clients from polling the remote application status. Is there anything similar in web service?
Did anyone meet the problem?
Any help will be appreciated.
Thanks a lot in advance.
Best regards,
Andrea
|
|
|
|
|
Hi Andrea,
I was wondering about same thing (What if my objects support events?) when going thro web service Why's and How's
What I found is "Web Service Notification Design Pattern" that sounds something on same track as Events. Check the following search I did on Google -
web service notification[^]
I haven't done any implementation for it because I was just curios to know why and where one should use Web services and not DCOM.
I hope the above link will help you to some extent.
Please let me know if you find anything substantial on this Topic.
Thanks
-------------------------
Have a great day ahead!
Regards,
Sohail Kadiwala
(My COM Blog - http://lovecom.blogspot.com)
modified 21-Apr-21 21:01pm.
|
|
|
|
|
What is the way to give flat look to DateTime control.
Thanks
|
|
|
|
|
Hi All,
I have to implement the collection classes in ATL. I have very little idea about the collection classes.
Could anybody provide me some code snippets which just explains the following thing:
1 - I have an exposed interface IRecord which reperesents a record from a database table.I want to return a collection to myclients(specially VB) which will conatin mutilple Records.Iknow for this I need to define a interface "IRecords" with one property defined as _NewEnum. Als I have to define a iterator class derived from the IEnumVARIANT which will iterate through the class.
2- Implementation of class IRecords with 2 or more functions like AddItem(which will add a Record to the collection).
3 - I want to use the vector as the container for the IRecord.
Please provide the information as soon as possible.
Thanks and Regards
Deepak
|
|
|
|
|
|
Hi Igor,
Thank a lot for your help.It really helped me a lot to understand the basics of the problem.
But if you dont mind I will keep pinging you for any clarification in the program.
I have gone through the code and now I am trying to implement it in my project.As i wil come across the problems I will mail you.
Thanks a ton agin for the help.
Regards
Deepak
|
|
|
|
|
Thanks Igor,
i am also in need for collection type of like this
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Hello
Please help me with this nasty problem,its appear so easy to solve but i can't.
I try to create an Add-In use standard wizard of VC7(Use C++\ATL property).
One of generated rows from code is:
hr = pCommands->AddNamedCommand(m_pAddInInstance, CComBSTR("MyAddin6"), CComBSTR("MyAddin6"), CComBSTR("Executes the command for MyAddin6"), VARIANT_TRUE, 59, NULL, EnvDTE::vsCommandStatusSupported+EnvDTE::vsCommandStatusEnabled, &pCreatedCommand);
This row add to Tools menu my AddIn when it necessary.Then i simple want to change icon of this AddIn on generic (had IDC_BITMAP1 id).And alter the row on following:
hr = pCommands->AddNamedCommand(m_pAddInInstance, CComBSTR("MyAddin6"), CComBSTR("MyAddin6"), CComBSTR("Executes the command for MyAddin6"), VARIANT_FALSE, IDC_BITMAP1, NULL, EnvDTE::vsCommandStatusSupported+EnvDTE::vsCommandStatusEnabled, &pCreatedCommand);
change VARIANT_TRUE on VARIANT_FALSE and 59 on IDC_BITMAP.
I think it must work bu it didn't.
The menu instead of my picture had nothing.Icon just disappeared.
Please help.
THANK.
|
|
|
|
|
Hello!
I ran into a problem, which, at first, looks like a bug in the implementation of STL. It can be simplified like this, consider the following code:
----8<--------8<--------8<--------8<--------8<----
#include <fstream>
using namespace std;
int main(int argc, char* argv[])
{
ofstream("myFile.txt") << "Hello" << endl;
return 0;
}
---->8-------->8-------->8-------->8-------->8----
I would expect this to put "Hello" in the file, but it prints the string address there.
I can't see why.
If you write:
ofstream("myFile.txt") << "Hello" << " men" << endl;
then " men" will be printed correctly, while "Hello" will be printed as the address.
Please note that this happens ONLY if you are using a temporary as the destination stream and ONLY with the leftmost object and ONLY if it's a string constant.
All the following versions behave as I would expect:
ofstream("myFile.txt") << (char*) "Hello" << endl;
//
ofstream("myFile.txt") << 123 << "Hello" << endl;
//
ofstream("myFile.txt") << 1.5f << endl;
//
ofstream myFile("myFile.txt");
myFile << "Hello" << endl;
//
I tried this with Visual Studio 2003 under WinXP and with the GNU compilare under Linux: same result, so it seems to be an intended behavior, because I tend not to think that I found any STL implementation issue. However, I found nothing in the STL documentation about this issue (hey... I found nothing, but maybe something is there hidden to my eyes ).
I am pretty much convinced that I forgot something very obvious and I'm being stupid, so if anyone can bring some light, it would be nice.
Thanks everyone.
Note: the original problem was found while creating a class deriving from basic_ostream to handle a custom error console, I also found several code sinppets around using temporary unnamed objects derived from basic_ostream but none of them was ever using a string constant as the leftmost object... -_-
C++U,
FrOYd
|
|
|
|
|
IIRC the C++ spec says that temporary objects hang around until the end of the statement, so to me it looks like a bug. I would put breakpoints on the ctor and dtor of ofstream to double-check the object's lifetime.
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
"Kosh reminded me of some of the prima-donna programmers I've worked with. Knew everything but when you asked them a question; never gave you a straight answer."
-- Michael P. Butler in the Lounge
|
|
|
|
|
Hi all,
Someone please explain me why COM doesnot support Multiple Inheritance incase of Interfaces
I mean why I shouldn't have
IDerived:IBase1,IBase2
I did read about it in Don Box book, but I would appreciate if someone explains it in detail (A link to some online resource would work fine too )
Thanks
-------------------------
Have a great day ahead!
Regards,
Sohail Kadiwala
modified 21-Apr-21 21:01pm.
|
|
|
|
|
I can't really answer your question. My guess is that it may be quite a restriction on the ABI if multiple inheritance is allowed. A restriction too high for other compiler vendors to cope with.
But, one has to ask oneself: is multiple interface inheritance really needed? I don't see why it is needed at all. Why not let the class implement the interfaces one by one...?
--
Arigato gozaimashita!
|
|
|
|
|
Its all about the binary layout thats results due to multiple inheritance among interfaces...
I wanted some details about it. Hope someone does help regarding this
Thanks Jörgen Sigvardsson
-------------------------
Have a great day ahead!
Regards,
Sohail Kadiwala
modified 21-Apr-21 21:01pm.
|
|
|
|