Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Calling exported function from dll

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 231

PostPosted: Thu Jun 24, 2021 5:51 am    Post subject: Calling exported function from dll Reply with quote

I am trying to call bom function from cheatengine script

the dll code inside VS :
Code:

extern "C" void bom()
{
    MessageBoxA(nullptr, "bom", "Native DLL Test", MB_OK);

}


as u can see in the picture writeFileDlltest.bom is undefined .. I think I am doing it with the wrong way so what is the correct way to do that > also I read all threads relegated to this topic in CE forum but nothing work for me .



bom.PNG
 Description:
 Filesize:  118.61 KB
 Viewed:  2756 Time(s)

bom.PNG


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25288
Location: The netherlands

PostPosted: Thu Jun 24, 2021 6:01 am    Post subject: Reply with quote

have you reloaded the symbollist after loading the dll ?

Can you find the symbol in enumerate dll's and symbols?

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 231

PostPosted: Thu Jun 24, 2021 6:24 am    Post subject: Reply with quote

no can't be found I dont know what do u mean with reloading the symbol list
Sad
also searching function names with ctrl+g doesn't work



memo.PNG
 Description:
 Filesize:  14.46 KB
 Viewed:  2748 Time(s)

memo.PNG


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25288
Location: The netherlands

PostPosted: Thu Jun 24, 2021 6:39 am    Post subject: Reply with quote

try retargeting the process with CE if it doesn't fill up
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 231

PostPosted: Thu Jun 24, 2021 6:49 am    Post subject: Reply with quote

tried not working Sad
if you have any dll to test maybe am doing something wrong ?
but at the same time after dll injection CE show function names but they are not added to the symbol list IDK why
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25288
Location: The netherlands

PostPosted: Thu Jun 24, 2021 6:56 am    Post subject: Reply with quote

how do you inject the dll ? using CE's force load method ?
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 231

PostPosted: Thu Jun 24, 2021 7:05 am    Post subject: Reply with quote

mem view CTRl+I inject dll
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25288
Location: The netherlands

PostPosted: Thu Jun 24, 2021 7:26 am    Post subject: Reply with quote

run lua command reinitializeSymbolhandler()
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 231

PostPosted: Thu Jun 24, 2021 7:34 am    Post subject: Reply with quote

The problem solved using Release instead of debug option in visual studio ..
so strange !!
and thank you for your time
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites