|
Dundas Software has a free dialup MFC class which can be downloaded from here.
Ivor S. Sargoytchev
Dundas Software
|
|
|
|
|
Hi,
I have a weird problem in DCOM. Everything works fine until the network goes down. If after a short period of network failure, when the network connection is restored, and I do CoCreateInstanceEx again, that works ok too, however, now I can't get a QueryInterface to succeed to get an interface pointer. It fails with some RPC error in the HRESULT. This behavior is intermittant.
Pl. help.
Thanks,
nct_11
|
|
|
|
|
Is it possible/easy to convert MFC Doc / View App to a COM / DCOM server? What I want to do is to have an external application query my running MFC application for the status of several internal operations using COM.
John
|
|
|
|
|
Not easy thing to do, plus the mfc application may not be employing the best techniques for COM/DCOM application to work efficiently
Interviewer (me) : "Did you install Linux all my yourself?"
Candidate : "Yes i installed Linux all my yourself."
|
|
|
|
|
It may be easier to expose the data from your existing app via a pipe or socket, and then write a COM component that knows how to query that pipe/socket.
onwards and upwards...
|
|
|
|
|
I was thinking of that but it does not seem like a simple operation and it will require a lot of work to implement.
John
|
|
|
|
|
why use dcom?
just expose an interface and use a standard network protocol
?
"there is no spoon" biz stuff about me
|
|
|
|
|
Because to get the result I need to execute code on the application address space and return objects containing the result. This sounds very much what com does...
John
|
|
|
|
|
can u add code to the exiting app?
make it pipe data out in some form or another?
"there is no spoon" biz stuff about me
|
|
|
|
|
Yes I can however I believed their was some trick that I could use to make my app a com server than add com objects that would return the info. If this is impossible or too difficult it really is not worth doing because it is not all that important to have this feature. The purpose of this information was to aid in debugging a complex multithreading application. I believe if I went the sockets route I am going to have to add a thousand lines of code to accomplish this and that was not what I was looking for.
John
|
|
|
|
|
oh shame
i think com / dcom are on the way out in the bigger scheme of things anyways so it might not have been the best way if the app has to live into the future
and really
it isnt that hard to add the sockets stuff
there are a billion classes out there that make it a complete snap
"there is no spoon" biz stuff about me
|
|
|
|
|
l a u r e n wrote:
it isnt that hard to add the sockets stuff
I'm laughing because the program already has two different socket communication methods (named pipe + CSocket based) but neither would be easy to do what I need in the curent form. Know anything about SOAP?
I'll take some time to think this one over before I go writing any code..
John
|
|
|
|
|
hehe
soap ... simple object access protocol ... a fancy name for using http to talk to remote things
i just do it the way a web browser does it
"there is no spoon" biz stuff about me
|
|
|
|
|
I hate to sound simplistic, but would using OutputDebugString() satisfy your needs? Or maybe you might want to look at Rob Manderson's Logging service.
onwards and upwards...
|
|
|
|
|
I do already have a logging system (similar to Robs but not mfc). You may have sloved my problem. I could send a user message to the program from another app and have it spill the result in the log. Thanks.
[EDIT]
Now when I think of it the socket options do not seem very difficult. There was one other detail that was influencing my desire to have a COM server. I currently have several property sheets in a popup dialog in the main application (easter egg) that display most of this info. I was thinking that I could move the property sheet to the new application and use com/dcom to do the RPC / communications for me.
[/EDIT]
John
|
|
|
|
|
Glad to be of help.
If you want to make it real simple, rather that doing the sockets implementation, simply have the app write out a file to a network shared folder that contains the tabbed dialog info (flattened out, of course) in response to an event. Your debugging program can then open and read that file.
Or, you could implement another debugging socket like you said.
onwards and upwards...
|
|
|
|
|
I have a RichEditCtrl and in there we have the sql statement. What I am trying to achieve is have the RichEditCtrl act as a partial editing control where the user can type in certain areas and other place we have our reserved keywords which cannot be changed. Any Ideas or suggestion
Vic
|
|
|
|
|
There is a protected character attribute that will send you EN_PROTECTED notifications on when the user tries to modify them. You can then take whatever action you need to.
Lookup CFM_PROTECTED and EN_PROTECTED for more information.
Peace!
-=- James (Sonork:100.21837)
[Tip for SUV winter driving survival: "Professional Driver on Closed Course" does not mean "your Dumb Ass on a Public Road"!] [Get Delete FXP Files Now!]
|
|
|
|
|
Hello:I am working a biometric project, my problem is now that I need save the native finger data format in SQl Server Data Base format compatible (varchar).
First It is declarate like unsigned char, then is copy through memcpy to other struct unsigned char...
See the code:
#define AC__UCHAR unsigned char
static AC__UCHAR temp1[256];
static AC__UCHAR fpData[512];
int storeFingerPrintData()
{
memcpy(fpData, temp1, sizeof(temp1));
//store data finger in smart card
for (int j=0;fpData[j] !=0;)
{
int lbDataIn = 0;
for (int k=0; k<32; k++)
{
memcpy(&apdu.bDataIn[k],&fpData[j],sizeof(AC__UCHAR));
lbDataIn++;
j++;
}
// here I can see the values through AfxMessageBox(apdu.bDataIn);
recNo++;
};
return ret;
}
How I convert in a char* the variable apdu.bDataIn unsigned char and How is the best way-format for save it in any table of SQL Server.
Thanks and Regards.
Joe.
Joe_Valenz
|
|
|
|
|
char *pChar;
pChar = &apdu.bDataIn;
Interviewer (me) : "Did you install Linux all my yourself?"
Candidate : "Yes i installed Linux all my yourself."
|
|
|
|
|
Hi,
I've got some data and a message handler stored & controlled by the main frame of an MDI app, and would like to show the data in an MDIChildWnd. I can create a window with a standard child wnd OR my own child wnd. e.g.
RECT pRect;
pRect.top = 0;
pRect.left = 0;
pRect.bottom = 604;
pRect.right = 394;
m_pCamWnd = new CMyChildWnd;
VERIFY(m_pCamWnd->Create(
NULL,
_T("Camera Input"),
WS_CHILD | WS_VISIBLE | WS_OVERLAPPEDWINDOW,
Rect, //
this)); //
(this was done in CMainFrame::OnCreate()).
What I'm not sure about is, can I just derive my own class from CMDIChildWnd then override OnPaint() in order to actually output the data...
My line of thinking being that CMDIChildWnd is derived from CFrameWnd which is derived from CWnd. So I'd really be overriding the OnPaint of it's 'grandparent'.
Any advice on this would be greatly appreciated as I'm more than a little confused
Dave
PS sorry havin trouble gettin the [CODE] tags to work
|
|
|
|
|
Hello,
I have a nmake file which compiles fine using (C++ ver 7) Visual Studio .NET Command Prompt.
The nmake creates an exe which loads dll and uses virtual functions.
I would like to add some functionality to this exe.
However I cannot open the nmake file in Visual C++ as a project.
There is no project file, just the cpp and h files and the nmake file and a some precompiled files.
I have tried to recreate the files within a project but the errors are so many! I believe that dll files must be loaded at runtime, which appears to be something which is not happening??
Are there ways to do this?
Any thoughts are appreciated.
files:
http://www.geocities.com/stashfiles/win_vc6_mak.txt
http://www.geocities.com/stashfiles/mediasinkencoder_cpp.txt
http://www.geocities.com/stashfiles/mediasinkencoder_h.txt
http://www.geocities.com/stashfiles/main_cpp.txt
http://www.geocities.com/stashfiles/guids_cpp.txt
extracted from:
https://producersdk.helixcommunity.org/ docs/producer_sdk_files.htm
|
|
|
|
|
Probably Borland C++ builder has the feature.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
I have an ActiveX control and when I click its button I want it to open a new html page in the same browser, how can I do this? I know i have to use HlinkSimpleNavigateToString function, but I only manage to open in a new browser.
|
|
|
|
|
Hello guys can i combine two bitmaps to produce a third combined bitmap .
for example if i have two images of
160*120 then resultant bitmap will of 320*240 size , which will be displaying two bitmaps side by side in on image .
so can any body guide me how to do this.
Unmanaged in a .NET world
|
|
|
|