|
I have a function called mycreatewindow function in dll
if i call this function from my exe i want to create one window and display the window.Is it possible to do in win32 dll.if it is how to do it.
Pl reply.
|
|
|
|
|
I need to get the GetDockedControlBar option of CDockBar, but it says that is a protected member, how can i access to this?
|
|
|
|
|
You need CDockBar to be a friend class of yours, or your class needs to be derived from CDockBar. Obviously only the second of those options is possible for you.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
I've derived a class from CDockBar, it's called CDockBarEx but i still having the same problem, why is this?
|
|
|
|
|
CosmoS2k wrote:
why is this?
The member is probably private, not protected. a.k.a. you're screwed.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
new error "syntax error : CDockBarEx", now this error appear, i'm confused???
|
|
|
|
|
The code generating this error is clearly not able to see the class. Not that it matters, as I said, if it's private then it's not going to be exposing this variable to you anyhow.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
but i can't believe that, the GetDockedControlBar is supposed to be protected member and not private, so how can i acces this?
|
|
|
|
|
If your derived class cannot see it, then it is private, not protected, or it is exposed through some other inheritance mechanism that you've not addressed. look at the source code, it's on your hard drive.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
hello.
i have made a access table inwhich field is Date of data type "Date/Time" and input mask "99/99/00;0"
i want to access that record through ADO.
A generic class with Variable
DATE m_dtBirthdate;
ULONG lBirthdateStatus;
BEGIN_ADO_BINDING(CCustomRs)
ADO_FIXED_LENGTH_ENTRY(3,adDate,m_dtBirthdate,lBirthdateStatus,TRUE)
END_ADO_BINDING()
in VIEW class
if (((DATE)m_oledtBirthdate) != pRs->m_dtBirthdate)
pRs->m_dtBirthdate = (DATE)m_oledtBirthdate;
here m_oledtBirthdate is form variable for edit box.
Problem is::
when i add new record then bydefault/changed value (1/1/1970 5:00:00 AM)can not enter into the table field.
OnAdd function::when i need to add new record. i have declare
COleDateTime dtBlank;
m_rsRecSet.m_dtBirthdate = (DATE)dtBlank;
Can any help me.
Advance Thanks.
dsad
|
|
|
|
|
I am a Sr.Software Engg, working on Win32 Functions in MAPI developement in VC++6.0.I want to know is there any way of sending a mail in HTML format using MAPI. I want to send the mail in using BOLD,UNDERLINED,FONTSIZE etc etc using HTML tags. Like the features incorporated in Yahoo. I am usingMAPI control in my VC++ application for sending mails. For ex the user enters the body of the mail as Hello World <\b>. Then when i send the mail, the person who receives the mail shld get the Hello World in bold format. Hope my problem is clear for you. So i want to incorporate this HTML tag feature in my mail application using Win32 Functions in MAPI and the programming environment is VC++ 6.0.
Plan your work n work your plan
|
|
|
|
|
Can somebody please initiate me into the basics of a firewall..i need to write a firewall in vc++ but i dont know how to intercept http..
thank you.
Satya Kiran.
|
|
|
|
|
I don't see how anyone can answer that for you without writing you a firewall. Why do you need to write one ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
I'm sure if you look round SourceForge and the other open-source sites you'll find the code for one.
Michael
Life’s not a song.
Life isn’t bliss.
Life is just this.
It’s living. -- Buffy the Vampire Slayer: Once more, with feeling
|
|
|
|
|
SatyaKiran wrote:
intercept http
If you need to "intercept http", it will be a lot easier for you if you write a proxy, not a firewall. There are samples here in Codeproject of proxies that do this.
My latest article:
SQL Server DO's and DONT's[^]
|
|
|
|
|
I am reading from an XML file and I need to convert a value from the variant string that I get to a double. How do I go about doing something like that?
|
|
|
|
|
atol, and use _bstr_t to convert your string into a char * first. If you put the string into a _bstr_t, the conversion to char * is implicit.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Actually, I think you can shove it into a variant_t and ask it to ChangeTo a double.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Thanks for your help, it sent me on the right track. After playing with ChangeType I found out that
the variant_t will do the conversion for me as it has the double() operator overloaded.
Thanks Again,
Clint
|
|
|
|
|
Great - glad to help. My experience with variant_t and VARIANT is limited, so I have only a vague idea.....
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
I am looking for a way to programmatically convert MIDI data to sound data (such as WAV) and then have that handed back to my program or saved to a file. Although I have found plenty of stuff about waveout functions, DirectX, DirectSound, etc., it seems as though the results of the soundcard processing always head straight out to the speakers. Is there a way that I can register my program (or a file) as the destination of the sound generator so that I can effectively convert MIDI to WAV and then do further processing on that sound data? Any ideas are appreciated.
|
|
|
|
|
ADO: how can u access the number of records in a given table again?
-- WITHOUT having to enumerate all records and increment some sort of counters?
thanks
norm
|
|
|
|
|
select count(*) from tblMyTable.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
i'm so stupid. sorry =)
norm
|
|
|
|
|
No worries - I've asked dumber questions. I believe the response you get from ADO is a single cell called 'count', so that is what you need to select. ADO.NET has executescalar, which is far nicer.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|