|
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
|
|
|
|
|
Wouldn't the resultant bitmap be 320 x 120? I'm also assuming the depth is the same on both.
Allocate the size of the bitmap and use trusty old BitBlt .
BitBlt(memDC,0,0,160,120,
leftDC,0,0,SRCCOPY);
BitBllt(memDC,161,0,320,120,
rightDC,0,0,SRCCOPY);
|
|
|
|
|
Just wondering if the visual C6 webbrowser can archive files can be save in them *.mht format using Visual C6. Been looking on the web for information on how to use cwebbrowser in C but have not found much about *.mht files. Since I am new to C could anyone lead me in the right direction.
Thank you,
doug@evansville.net
|
|
|
|
|
|
Hi all,
I am trying to write an administration tool that will be executed by users with administrator privileges. At some point, it may need to lock volumes or files for processing but sometimes these files/volumes will be in use by other processes.
This tool is meant to get top priority when it is run. Is there a way if can take over files/volumes that are in use by other processes?
Mark
|
|
|
|
|
I'm working on a dialog based project.
I wanna show the *.mdb table content on the form, what shold I do?
emroz
|
|
|
|
|
from CDbDatabase or CdbDatabase (second 'd' is lower case and better) and related classes.
includeh10
|
|
|
|
|
I wanna use flexGrid Control
emroz
|
|
|
|
|
|
i use DirectX 6.1
following is a piece of code to be compiled
//inside a function
IDirectDraw*pdd;
HRESULT hr;
hr=::DirectDrawCreate(0,&pdd,0);
IDirectDraw4*ppd4;
hr=pdd->QueryInterface(IID_IDirectDraw4,(void**)&ppd4);
pdd->Release();
in win32 App, the code is compiled no problem.
but once in MFC, i got compile error:
*****************************************************
error LNK2001: unresolved external symbol _IID_IDirectDraw4
*****************************************************
to solve the error, i try all but none of them working,
following is includes and libs in CPP file:
#define INITGUID
#include <objbase.h>
#include <initguid.h>
#include <stdio.h>
#include <stdarg.h>
#include <windows.h>
#include <mmsystem.h>
#include <ddraw.h>
#pragma comment(lib,"ddraw.lib")
#pragma comment(lib,"ddraw.lib")
#pragma comment(lib,"winmm.lib")
#pragma comment(lib,"kernel32.lib")
#pragma comment(lib,"user32.lib")
#pragma comment(lib,"gdi32.lib")
#pragma comment(lib,"winspool.lib")
#pragma comment(lib,"comdlg32.lib")
#pragma comment(lib,"advapi32.lib")
#pragma comment(lib,"shell32.lib")
#pragma comment(lib,"ole32.lib")
#pragma comment(lib,"oleaut32.lib")
#pragma comment(lib,"uuid.lib")
#pragma comment(lib,"odbc32.lib")
#pragma comment(lib,"odbccp32.lib")
#pragma comment(lib,"dxguid.lib")
//-------------------------
where is IID_IDirectDraw4 defined?
why no problem in win32, but trouble in MFC?
thx for any help
includeh10
|
|
|
|
|
Consider downloading the latest Platform SDK, or the DirectX SDK (microsoft.com/directx). Either case, this should be at least 200MB a download.
IDirectDraw4 is an interface which appeared in DirectX 7.
|
|
|
|
|
nothing about sdk.
it can be compiled in win32 app.
includeh10
|
|
|
|
|
Hi,
I have a CRichEditView derived class. I want to handle when the user selects text with the mouse by pressing the left button. This works fine but when the mouse pointer is dragged belov or over the window the selections stops, which means that the user only can select text that is visible in the window. So I want to scroll when this happens.
Does this make sense?
Regards
|
|
|
|
|
use SetCapture() on LButton down
and ReleaseCapture() on LButton up
includeh10
|
|
|
|
|
Thanks that seems to do the trick.
Do you know how to handle ctrl-key input?
I can get when the user press ctrl and when a user press another one. Do I need to keep track if the ctrl is pressed or is there a predefined way to do that, multiple key input?
Cheers
|
|
|
|