|
you should use the CPropertySheet (easier to maintain), and then it's easy to get access to the children dialogs (CPropertyPage's).
Hope this helps.
|
|
|
|
|
Hi,
I am searching for a good tutorial on "How to use odbc with text file".Any example with source code will be quite helpful.
Regards.
Gajendra Sharma
|
|
|
|
|
What you need to do is to properly configure the DSN. This includes selecting the directory and defining the layout of each file that you will want to query. Be aware that the standard MS ODBC Text File driver operates in a read-only manner and does not use any form of indexing (Table Scan every time!).
|
|
|
|
|
Having brought a dynamically linked mfc app to a site which does
not have any of the mfc libraries, I wonder if anyone knows
of a site that you can download the mfc libraries from.
I am looking specifically for mfc7oud.dll but it strikes me that
this would be a useful service anyway and that if there are
no licencing problems that maybe even the codeproject could
offer a selection of these libraries for download?
|
|
|
|
|
That's the debug version of the mfc7ou.dll library. If you're distributing your app, you need to build the release version. I don't think you can legally distribute the debug version of the libraries, and you wouldn't want to anyway. You are allowed to distribute the release version that you got with Visual C++.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Thanks for the reply, the app is in testing at the moment hence the debug version.
Dont suppose you could email me mfc7oud.dll to ssmith2@fsmail.net, it would be very useful.
many thanks
|
|
|
|
|
Nope, I only have VC++6, not 7, so I don't have that library. I would have come with your copy of VC++7, so you should have it.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
I'd program my pluggable protocol to provide data by read local compressed HTML file and pics in HTML.
In my Interface inherit form IInternetProtocol
I found implemented function : IInternetProtocolRoot::Start
the parameter /* [in] */ LPCWSTR szUrl is not incorrect while ask for html pics.
eg: To open url myprot://index.htm/ (there is a pic in this html file named : hello.jpg in the subfolder images/hello.jpg)
First Start functoin's szUrl is myprot://index.htm it's no problem.
Then I call IInternetProtocolSink::ReportData (BSCF_DATAFULLYAVAILABLE, 100, 100) to tell the sink data is ready return S_OK.
When finished read the html data Start function is been call angain, this time the szUrl parameter is myprot://index.htm/images/hello.jpg. I think the pic's url is not incorrect as the other protocol(eg:file ftp http), in http protocol the url normal is prot://images/hello.jpg
Can you help me?
Thanks.
Phourm
|
|
|
|
|
Hi,
I am porting a Application which communicates with a Wireless Protocol
Stack from unix m/c to WPS on Enfora board. Previously packets are sent through TCP which I
have to change it to use PPP mode instead of TCP. Application is running on windows XP m/c.
Is there any way to do this through some mechanism either editing regedit or some how.
Thanks in advance,
Regards,
pramodav@sasken.com
Pramod Kumar A
SASKEN-INDIA
|
|
|
|
|
PPP is a TCP tunneling protocol for peer-to-peer connections like dial-up ones. In Windows, these connections can be programmatically managed with the Ras library (see for instance RasDial and pull the thread from there). Once a PPP session is established, you can use TCP as you did before, so basically you only have to add code for establishing the dial-up connection and leave the rest unchanged (hopefully).
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
hello all
could any of you help me how
to develope a voice chat appn with vc++
1. how to enable voice chat appln between registered users of a web site?
2 . what are the libraries needed and where r they avialable ?
3. how to link the appn developed using vc++ into the web site?
so that it is served to all the persons logged in?
regards
dharani babu
|
|
|
|
|
Help!!!Who can tell me
how to command the controller of Floppy Disk Device to do verify?
|
|
|
|
|
Is there any existing classes/functions that do md5 encryption, for example "LRESULT MD5(LPCTSTR lpOriginalString, LPTSTR lpEncryptedString)" or something like that that we can directly call in our code? Thanks a lot.
|
|
|
|
|
|
If it doesn't necessarily have to be MD5, you could try my SHA-1 implementation as C++ class:
http://www.codeproject.com/cpp/csha1.asp[^]
SHA-1 produces a 160-bit hash and therefor is generally regarded to be more secure than MD5.
You can also have a look at the implementations I used in my hash calculator:
http://www.codeproject.com/cpp/ReHash.asp[^]
This also includes a MD5 implementation.
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Thanks to both of you for the replies, I appreciate that. The reason why I want an md5 api is because I'm cuurently working on a sql server2000 database project which must store user password in md5 encrypted format. I've been using mySQL for a while which has a built-in md5 function so we don't need to do a thing, but in sql server2000 I failed to find any similar features, so I have to do the encryption by myself I guess... To Dominik Reichl, thank you for the article links but it does have to be md5.
|
|
|
|
|
Then go and download my ReHash hash calculator source code. Go to the "algo" directory and grab the files MD5.cpp and MD5.h.
Include these 2 files to your project. These 2 files implement the MD5 standard as described in RFC 1321 by Rivest.
To hash a string, do the following:
char yourstring[] = "this can be a string of any length";
MD5_CTX ctx;
MD5Init(&ctx, 0);
MD5Update(&ctx, (unsigned char *)yourstring, strlen(yourstring));
MD5Final(&ctx); Now ctx.digest[16] contains the 16 hash bytes (MD5 is a 128-bit hash, therefor 16 bytes [16*8=128]).
You could output these 16 bytes like this:
for(int i = 0; i < 16; i++) printf("%02X ", ctx.digest[i]); Hope that helps
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
|
Could help me but to say, as to codify to capture I cosay of bar with of recording machine.
Visual C++ MFC
|
|
|
|
|
Hi. I'm trying to get the pixel length of a string inside a CStatic, so I can chop it off in the middle and put "..." in the middle. The string happens to be a filename. So if C:/WINNT/ABC/XXX/YYY/ZZZ/DEF/COMMAND.COM is too long to fit inside CStatic width, it will be something like C:/WINNT/AB...EF/COMMAND.COM that will fit. I'm using true type font for the CStatic, so I have to calculate this on the fly. The problem is I have to get the DC to do GetTextExtent, and I dont want to override OnPaint method. I was hoping to get this before the OnPaint is called (actually I dont mind looping on SetWindowText until the length fits) Any ideas?
Thanks
|
|
|
|
|
|
Or, if you really want to calculate it yourself, simply get the dc when you need to compute the size manually like this:
...
CWnd *pStatic = GetDlgItem(IDC_MY_STATIC_FILENAME);
CDC *pDC = pStatic->GetDC();
pDC->GetTextExtent() or pDC->DrawText(cText,&oRect,DT_CALCRECT....
your calculations...
pStatic->ReleaseDC(pDC);
|
|
|
|
|
How can I calculate the data rate of a video stream in an avi file (contains two streams, one video, one audio) without knowing the audio details in the same way that windows xp does when you right click on the file and look at the properties tab?
|
|
|
|
|
|
geee. some boolean read only flag, checked in mouse button down handler ignoring the click when set? It's not a pretty elegant, but it works
|
|
|
|