|
What's the return value of CoCreateInstance in this case?
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
hiiii
i want that somebody give me code to get the RGB values from an image and show in edit boxes.
somebody told me use GetRValue , GetRValue , GetRValue by using GetPexil method but i don't know how to do it.
its a bit urgent plz
regards
tahir
|
|
|
|
|
GetPixel() with :
GetRValue()
GetGValue()
GetBValue()
TOXCCT >>> GEII power
|
|
|
|
|
Hi,
Is DDE still being use in programms, or is some thing newer? Is any examples of DDE (or newer thing) availabel some where?
Thanksing
|
|
|
|
|
quzi wrote:
Is DDE still being use in programms...
Yes, the clipboard uses it, or at least it used to in earlier versions of Windows. A cursory glance at the documentation indicates it probably still does.
quzi wrote:
...or is some thing newer?
There are a variety of IPC mechanisms, such as COM, Mailslots, Pipes, and RPC, just to name a few.
quzi wrote:
Is any examples of DDE (or newer thing) availabel some where?
Here is but one. Try Googling for others.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Use of DDE is discouraged on Windows Server 2003.
The DDE is a gaping security hole, as I understand it.
You are supposed to use the Micosoft Message Queue, or the other methods as David suggested.
|
|
|
|
|
hi all,
i need a good "send email sample" of vc for my project,
i do have few samples in hand, but none of them can be tested properly.
thx for any links
includeh10
|
|
|
|
|
Try this one: http://www.naughter.com/smtp.html
Very simple to use (nice C++ interface), and it even supports attachments, MIME, and some authentication protocols. Works very nicely for me.
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)
|
|
|
|
|
do u mean from MFC menu "send"?
i need seed email programmtically.
user does not need to use interface, all from reading files (email address and message)
includeh10
|
|
|
|
|
Check Dominik's post again. Did you notice the link he provided? It is a class for programmatically sending e-mail via SMTP. You can also find examples here.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Dominik and DavidCrow,
thanks. i downloaded a sample before which has the same name as your sample - an exe active control for VB - i don't know VB.
but this sample is totally wonderful, i think it is exactly what i need.
one Q:
when i run the program, it asks for configuration - host name/address, is it my PC's ip address?
thanks again.
includeh10
|
|
|
|
|
includeh10 wrote:
it asks for configuration - host name/address, is it my PC's ip address?
Only if your PC is also the host.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
one more Q:
i use the configuation:
host:tntwc09-3-94.finst.com.au
port:80
get error message:
can't connect to server: error 10061
what does it mean? how to fix it?
thx
includeh10
|
|
|
|
|
Is there any way I can use a custom draw type technique when drawing an owner drawn tab control???
I only want to change the color of the text and allow the system to draw the rest...
Is this possible any hack or something I can use?
Thanks
How do I print my voice mail?
|
|
|
|
|
I have done the same thing with a customised button.
Try the following:-
Make a new class which is derived from CTabCtrl let it be
CCustomTabCtrl
let your tab be of type CCustomTabCtrl
then override DrawItem in the CCustomTabCtrl
in this DrawItem() call the default
CTabCtrl::DrawItem(lpDrawItemStruct);
just before writing your own code to color the text
I hope it will work
Even the word impossible says I am possible.
|
|
|
|
|
followed all the instruction from DirectShow SDK document,but still can't find anything from GraphEdit's File|Connect to Remote Graph, Although the AddToRot function returned SUCCEED.
I'm using VC6.0, Win2k
thanks for any help
|
|
|
|
|
I use VC++ 6.0 to make a MFC dialog based project, simply add a Date Timer Picker, using classwizard add two member variables for this datetimerpicker control(CTime, CDateTimeCtrl), then compile and run this simple application, ok, then interface comes out, datetimepicker is initialized to be 1970-1-1, when I reset time to be any time before 1970-1-1 I get this error message:
Debug Assertion Failed
Program: C:\test\debug\test.exe
File: timecore.cpp
Line: 40
what's wrong here? can anybody help me out? thanks
|
|
|
|
|
|
line 40 of timecore.cpp is
ASSERT(m_time != -1); // indicates an illegal input time
inside this constructor
CTime::CTime(int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec,
int nDST)
{
struct tm atm;
atm.tm_sec = nSec;
atm.tm_min = nMin;
atm.tm_hour = nHour;
ASSERT(nDay >= 1 && nDay <= 31);
atm.tm_mday = nDay;
ASSERT(nMonth >= 1 && nMonth <= 12);
atm.tm_mon = nMonth - 1; // tm_mon is 0 based
ASSERT(nYear >= 1900);
atm.tm_year = nYear - 1900; // tm_year is 1900 based
atm.tm_isdst = nDST;
m_time = mktime(&atm);
ASSERT(m_time != -1); // indicates an illegal input time
}
|
|
|
|
|
A CTime object wraps a standard C time_t . This type cannot represent a date before 1 January 1970, and the assertion is telling you this.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
is there any method to resolve this problem? coz in my case I can't restrict input time to be after 1-1-1970
|
|
|
|
|
This works fine for me:
COleDateTime from(1968, 9, 6, 16, 10, 0),
to(2006, 4, 29, 16, 23, 15);
m_datetime.SetRange(&from, &to);
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
hi David, I tried your soluation, but the problem is still there, can you provide another simple sample? thanks
|
|
|
|
|
Perhaps I do not understand the problem. The code snippet I provided gives the control a minimum date of 6-Sep-1968, which is earlier than the 1-Jan-1970 date that was originally confining you. If you have a relevant code snippet that we could look at, we might be of more help.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
please give a example.
appreciate any help!!
|
|
|
|