Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2003, 09:48 PM
mByte
Hill Giant
 
Join Date: Feb 2002
Posts: 206
Default Dumb Question Time

Ok forsome reason I forgot how to do this in C

I want to convert struct* to const char* how?

ie

bool SaveSpawn(spawn_struct* sStruct){

const char* SN = sStruct->name;

RunQuery(query, MakeAnyLenString(&query, "INSERT INTO npc_types (name) values('%s')", SN);

}

Error is
'cannot convert parameter 1 from 'const char *' to 'Spawn_Struct *'

I did this before in the last release but pc crashed few weeks ago, before i could get anything documented.

its very late so im going to hit the sack maybe it will come back to me.
__________________
mByte
Reply With Quote
  #2  
Old 01-03-2003, 09:55 PM
mByte
Hill Giant
 
Join Date: Feb 2002
Posts: 206
Default nm

Figured it out hit me as I was closing, I was passing the const char* when i needed to pass it as a char[64]

disreguard this.
__________________
mByte
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 01:22 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3