Results 1 to 12 of 12

Threaded View

  1. #1
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,204
    My Mood
    Flirty

    How to convert char* to LPTSTR

    I've got some code here
    Code:
    result = dsound->Create(&wave, filename);
    	if(result != DS_OK)return NULL;
    Its supposed to load a .wav file, but it only takes filenames in LPTSTR format. And I have no idea what a LPTSTR is o_O? So I have no idea how to convert it. Please help...

    Oh yeah here's error message:
    Code:
     error C2664: 'CSoundManager::Create' : cannot convert parameter 2 from 'char *' to 'LPTSTR'
    Last edited by why06; 11-30-2009 at 03:39 PM.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

Similar Threads

  1. char* to LPTSTR
    By Hell_Demon in forum C++/C Programming
    Replies: 1
    Last Post: 12-01-2009, 09:45 AM
  2. How to convert FRAPS?
    By TheDesolate in forum Combat Arms Glitches
    Replies: 17
    Last Post: 07-04-2009, 10:19 PM
  3. How To: Convert Address to long
    By stonie in forum Visual Basic Programming
    Replies: 4
    Last Post: 12-18-2008, 12:41 PM
  4. Can someone teach me how to convert a bypass into a adress
    By frono15 in forum Programming Tutorial Requests
    Replies: 2
    Last Post: 05-18-2008, 11:38 AM
  5. Share :how to convert dvd and video to zune
    By goodfriend in forum Entertainment
    Replies: 3
    Last Post: 02-20-2008, 07:06 AM

Tags for this Thread