|
Anonymous wrote:
I have noticed a "strange" behavior with the Edit control.
And that "strange behavior" would be what?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
|
lolol....
I find it strange to even have an answer to what i wrote because i accidentally pressed a button and what i was trying to write got add to the message board before even start writting anything....
But anyway today i wrote again the hall matter so u can find info about the strange behavior....
|
|
|
|
|
I've an application that use RichEdit. Right now, I want to add a functions that can let users choose different zooming factors like 50%, 100%, 200%, etc. like those work in winword. However, I've no idea how to start. Could any experts help me? Thanks!
BlueSimon
|
|
|
|
|
change the font and the window size according to the zoom settings
i can't even remember what my point is now, but anyway, i'm correct
Barring unforeseen acts of God and Adminstrators, my server will be up tomorrow. I'm more worried about the Adminstrators.
|
|
|
|
|
Convert long to SYSTEMTIME
long day =24,mm =4,year =1976;
I need to convert day ,month,year to SYSTEMTIME.
How?
|
|
|
|
|
long day =24,mm =4,year =1976;<br />
SYSTEMTIME st;<br />
<br />
ZeroMemory(&st, sizeof(SYSTEMTIME));<br />
st.wYear = (WORD)year;<br />
st.wMonth = (WORD)mm;<br />
st.wDay = (WORD)day;
Best regards,
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
you mean, day,mm,year are stored in one long ?
asume year is stored in high word and day+month in low word:
systime.wDay= (BYTE)lDate; // low byte low word
systime.wMonth= (WORD)(lDate>>8)&0xFF; // hi byte
systime.wYear= (WORD)(lDate>>16)&0xFFFF; //hi word
you may change it depending on
sequence in which values are stored in long
|
|
|
|
|
Guys,
i want my program to read the username and password from an edit box (this is the easy part) in order to login to the msn (any version, say 6)..
is this possible?
|
|
|
|
|
there are some articles about reading passwort edit boxes on CP!
Don't try it, just do it!
|
|
|
|
|
this isnt not my issue
i want to login to msn from the code!
|
|
|
|
|
send a click message to the connect button
Don't try it, just do it!
|
|
|
|
|
?!
more clarification please
|
|
|
|
|
|
I need to modify a library that is used by a C-Scripting application to allow a MFC application to stop and start the processing.
The DLL builds OK, but both the application which loads the dll and the script that checks the flag always see the flag a false (0).
However I get the abortFlag is always 0 (false); see code snips below:-
First the Modifed section of th DLL project:-
#define DLLDIR __declspec(dllexport) // export DLL information
// The extern "C" declaration allows mixed languages compactability, it prevents
// the C++ compiler from using decorated (modified) names for the functions
extern "C" { <-------- Error here !!!!!!!!!!!
void DLLDIR APPSetAbortFlag(int);
int DLLDIR APPGetAbortFlag(void);
};
static int abortFlag; /* The flag to abort the test */
static int contiuneFlag; /* The flag to schedule the test to continue */
static int enterFlag; /* The flag to schedule data entry the test */
int APPGetAbortFlag()
{
return abortFlag;
}
void APPSetAbortFlag(int a)
{
if(a == 1)
abortFlag = 1;
else
abortFlag = 0;
}
Next the section of code for the application that uses the DLL:-
typedef void (*APPSETABORTFLAG)(int); // Pointer to APPSetAbortFlag(int)
typedef int (*APPGETABORTFLAG)(void); // Pointer to function int APPGetAbortFlag()
hMod = LoadLibrary("WHLLib.dll");
pGetAbortFlag = (APPGETABORTFLAG) GetProcAddress(hMod, "APPGetAbortFlag");
pSetAbortFlag = (APPSETABORTFLAG) GetProcAddress(hMod, "APPSetAbortFlag");
I set the flag like:-
UINT value = 1;
(pSetAbortFlag)(value);
and read the flag like:-
int result = (pGetAbortFlag) ();
Are they a problem with the use of the item of data in the DLL?
grahamfff
|
|
|
|
|
|
I am trying to have an MFC application that shares data with a DLL.
The DLL is loaded via a batch file in a C-Scripting environment.
I have included the following lines of code in both the EXE and DLL
#pragma data_seg(".CSL_DATA")
int volatile abortFlag = 0; /* The flag to abort the test */
int volatile contiuneFlag = 1; /* The flag to schedule the test to continue */
int volatile enterFlag = 0; /* The flag to schedule data entry the test */
#pragma data_seg()
#pragma comment(linker, "/SECTION:.CSL_DATA,RWS")
On the C-Scripting side of things the batch file loads the DLL as follows:-
#loadlibrary 'WHLLIB'
However any changes in the data (abortFlag say) is not reflected in the other side.
Basically all I want is the 3 variables to be visible by the libray and the application.
Am I doing it wrong?!?
|
|
|
|
|
I need to display XML in IE Com control. This XML is translated by xslt (some external file, presented by end-user), and after i change source xml i want IE somehow to synchronize it's representation...
|
|
|
|
|
hi,
please help me in any way you can which will be highly appreciated.
i'm a computer engineering student and i'm doing a 3 months project on computer controlled musical water fountain. we have to create an audio player and capture the instantaneous frequency of the song playing from its buffer, calculate the dominating frequency for brief interval of time and send it to the electrical team who will receive the signal and activate the corresponding motors for the different pattern of the water fountain.
I used Java's JMF(java media framework) API but it could only give the samples per second. but what i actually need is the sample values.i also studied the DirectX.DirectSound 's getFrequency() method but it could only give the samples per second.
Eagerly hoping for positive response.
|
|
|
|
|
tre 46 654 5465 6547 54 ı ayman
|
|
|
|
|
Hello, I am a student working on a camera surveillance project and I am trying to write an
application that will be able to use any camera regardless of its vendor.
I have an axis PTZ 2130 camera to work with, and I have the ActiveX control for this camera that displays the MJPEGs being pushed from the camera.
If I want to periodically grab one of those JPEG being pushed from the
camera what would be the best way to do it. I know I want to use DirectShow.
But I'm not quite sure how to go about doing it.
Any help would be much appreciated, thanks.
|
|
|
|
|
Download and install the DirectX SDK.
Take a look at the PlayCap sample application which installed to C:/DXSDK/Sample/C++/DirectShow/Capture/Playcap for a default installation. It describes how to get a capture graph up and going. Modify the graph to include a ?sample?grabber filter (the name depends on the version of the SDK). Modify the application to grab and parse jpegs.
There is a fair bit of work involved in doing this, but enough people on Codeproject know how to use DirectShow so you should get plenty of help
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Well, I've been working for a few weeks with directshow, and working whith the capture graph isn't really a problem anymore.
its the parsing of these Jpegs that troubles me. I Have no idea how to make a stream out of these and using them with in Directshow.
I use Wininet to download one jpeg and save it to a file at a time, and I can show this with using RenderFile(c:\\"example.jpg") or something. I just don't know how to stream these jpegs. (the camera has a webserver where a jpeg image is refreshed constantly).
thanks for the reply btw
|
|
|
|
|
I'm speculating - your application doesn't seem to be as similar to what I was using DirectShow for as I first thought. Have you looked at the PushSource Filter? It pushes bitmaps from files, but I'm sure it could be modified to either push jpegs or to convert jpegs in bitmaps and then push them into a graph.
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
I think I'll try working with this filter, I'll let you know if i accomplish something
|
|
|
|