|
-
Aug 14th, 2002, 09:26 AM
#1
Thread Starter
Hyperactive Member
Pointers to char
So many API functions use types like LPSTR, or LPCSTR. Shuld I use them in my own functions? or should i just use the char* type?
thanks in advance
Amon Ra
The Power of Learning.
-
Aug 14th, 2002, 02:15 PM
#2
Monday Morning Lunatic
That's just MS making names for everything -- you're better off using the normal types for things (except for TCHAR, which it's good to get used to using).
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 14th, 2002, 02:52 PM
#3
Frenzied Member
Also BSTR for OLE strings and strings that come from VB.
-
Aug 14th, 2002, 03:12 PM
#4
Ya ya Baby!!!Me is Back
I suggest you to use string because it have some feature that can help you and it's easy to use.
-
Aug 14th, 2002, 03:18 PM
#5
Monday Morning Lunatic
You don't *always* need string; sometimes it helps though.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 14th, 2002, 05:01 PM
#6
Thread Starter
Hyperactive Member
ok, thanks guys..i ahve another question that doesn't really belong to this thread..if i wanted to write an application with lots of controls without using MFC, so just API, would i just do everything step by step, or would it be a good idea to write a dll containing a few good classes to that could be used to handle the window ops (ie. creation and manipulation)? i thought it wouldmake the code nicer and more modular, but i wanna hear what the experts have to say
thanks in advance
Amon Ra
The Power of Learning.
-
Aug 17th, 2002, 12:02 AM
#7
PowerPoster
You don't always have to make a dll for it. You can either write a class (eg: toolbar) that is like your source code in a different file or you can write some helper functions for different controls to make coding a bit easier.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|