layer Posted February 22, 2005 Share Posted February 22, 2005 (edited) :"> i just turned on debug in Dev-C++ and its riving me insane because im making a smaller Dll then my Math.dll and now it is 277KB !!! how exactly do I turn off the debugger info on it? thanks, and one more question... im making a dll for someone who wants to write things to a console created.. and i looked at Larry's TCP dll and saw for a variable(?) he used szSomethingHere, so thats what i tried to do... heres the code :"> (theres more but im only includuing the stuff i actually wrote)#include "dll.h" #include <windows.h> #include <cstdlib> #include <iostream> using namespace std; extern "C"__declspec(dllexport) int CreateConsole (char* szWhat2Write, char /n, int argc, char *argv[]) \\ do i need char /n? { cout << szWhat2Write; \\ quotes around szWhat2Write?? cout << " /n"; system("pause"); return 0; }if i am being really annoying with all of this Dll stuff... then just tell me, because i feel like i am but at least could you answer my first question about the debugger? and please the second question about the code? (the code compiled ok, but just the "cout" stuff isnt working)thanks!!!! EDIT: and also, this is how i tested it...$test= DllCall ("AutoItConsoleWrite.dll", "int", "CreateConsole", "char", "Testing") ; ^ that doesnt work, the below code does except with no "Testing" printed out on the console $test= DllCall ("AutoItConsoleWrite.dll", "int", "CreateConsole") Edited February 22, 2005 by layer FootbaG Link to comment Share on other sites More sharing options...
Blue_Drache Posted February 22, 2005 Share Posted February 22, 2005 :"> i just turned on debug in Dev-C++ and its riving me insane because im making a smaller Dll then my Math.dll and now it is 277KB !!! how exactly do I turn off the debugger info on it? thanks, and one more question... im making a dll for someone who wants to write things to a console created.. and i looked at Larry's TCP dll and saw for a variable(?) he used szSomethingHere, so thats what i tried to do... heres the code :"> (theres more but im only includuing the stuff i actually wrote)#include "dll.h" #include <windows.h> #include <cstdlib> #include <iostream> using namespace std; extern "C"__declspec(dllexport) int CreateConsole (char* szWhat2Write, char /n, int argc, char *argv[]) \\ do i need char /n? { cout << szWhat2Write; \\ quotes around szWhat2Write?? cout << " /n"; system("pause"); return 0; }if i am being really annoying with all of this Dll stuff... then just tell me, because i feel like i am but at least could you answer my first question about the debugger? and please the second question about the code? (the code compiled ok, but just the "cout" stuff isnt working)thanks!!!! <{POST_SNAPBACK}>Aren't you missing a semi-colon after the "Extern" line, before your // remark?? Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
layer Posted February 22, 2005 Author Share Posted February 22, 2005 noo, i dont think so, thats how it should be, unless you mean something different? (and plus, the compiler would have yelled at me) FootbaG Link to comment Share on other sites More sharing options...
Blue_Drache Posted February 22, 2005 Share Posted February 22, 2005 noo, i dont think so, thats how it should be, unless you mean something different? (and plus, the compiler would have yelled at me)<{POST_SNAPBACK}>Meh, Ok. I'll leave it to the pros, it's been too long since I did anything in C. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
layer Posted February 22, 2005 Author Share Posted February 22, 2005 thanks for trying anyways FootbaG Link to comment Share on other sites More sharing options...
Valik Posted February 22, 2005 Share Posted February 22, 2005 Learn the language. By your question, you clearly don't know anything about even the basic types in C++. And now you're trying to write DLL's with zero knowledge of the language you're using. How's that working out so far? Not too well? Think maybe learning the language first would be a better start? And in regards to debugging, read the documentation for your compiler. If you're going to even be half-decent at this, you're going to have to read the docs for your compiler of choice. Link to comment Share on other sites More sharing options...
layer Posted February 22, 2005 Author Share Posted February 22, 2005 just when i thought i was on a roll (nothing) FootbaG Link to comment Share on other sites More sharing options...
Blue_Drache Posted February 22, 2005 Share Posted February 22, 2005 just when i thought i was on a roll (nothing)<{POST_SNAPBACK}>LOL. I backed out early myself. I know nothing but the most basic structure of C so, that's why I only suggested the most common error. I was wondering when Valik would come swinging his velvet sledgehammer..... Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
layer Posted February 22, 2005 Author Share Posted February 22, 2005 LOL. I backed out early myself. I know nothing but the most basic structure of C so, that's why I only suggested the most common error. I was wondering when Valik would come swinging his velvet sledgehammer..... <{POST_SNAPBACK}>hehe, maybe im just better off writing a C++ program instead of trying to do a DllCall cause i cant find a good tutorial site FootbaG Link to comment Share on other sites More sharing options...
Josbe Posted February 22, 2005 Share Posted February 22, 2005 hehe, maybe im just better off writing a C++ program instead of trying to do a DllCall cause i cant find a good tutorial site <{POST_SNAPBACK}>Not offense, but take in consideration Valik's advice. Learn the language. This will help him to have a better understanding of other things for your DLL. agrh..I can't remember a link for tutorial right now. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
SlimShady Posted February 22, 2005 Share Posted February 22, 2005 (edited) http://cplus.about.com/http://www.cplusplus.comThe first site is really helpful. Edited February 22, 2005 by SlimShady Link to comment Share on other sites More sharing options...
Encryption Posted February 22, 2005 Share Posted February 22, 2005 Umm, maybe I missed some of the thread, but somewhere in this jumble I heard someone asking for some good C++ tutorials. Being a C programmer myself(long before I knew about AutoIt)I have compiled quite a bit of sites. Here is a list I posted on www.realmgx.com not so long ago(I am mason on there).General ReferencesCode ProjectMSDNSecret Website http://www.cppreference.com/http://www.cplusplus.com/ref/http://www.parashift.com/c++-faq-lite/Beginnershttp://hellnet.perverz.hu/ebookz/C++%20in%...ys/htm/ch01.htmhttp://www.fredosaurus.com/notes-cpp/http://www.open-std.org/jtc1/sc22/open/n2356/http://www.kuzbass.ru:8086/docs/isocpp/http://www.research.att.com/~bs/bs_faq2.htmlWin32 APItheForger's Win32 API TutorialFoosYerDoosGameTutorials's Win32 TutorialsSunlightFunctionXReliable SoftwareCatch22 Productionsfrom the ground upFallout SoftwareGame Developmenthttp://nehe.gamedev.net/http://www.programmersheaven.comhttp://www.ultimategameprogramming.com/index2.phpForumshttp://cpp-home.com/forum/http://www.programmingforums.org/http://www.gamedev.nethttp://www.gametutorials.comI hope this helps in your journey throught C++, if you start one. Personally, I hope you do, although AutoIt is amazing for a scripting language, and amazing compared to some normal languages, C++ is a very powerful tool that can be used on just about any project. Link to comment Share on other sites More sharing options...
DaveF Posted February 22, 2005 Share Posted February 22, 2005 Go to the library and check out Steve Oualline's Practical C++ Programming (the Chipmunk Book). It's pretty Linux-centric, but it tells you what it's all about... Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines. Link to comment Share on other sites More sharing options...
Insolence Posted February 23, 2005 Share Posted February 23, 2005 Excellent post, Encryption Layer, C++ is pretty hard... don't dive into it TOO fast. Set a nice goal though. "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar. Link to comment Share on other sites More sharing options...
layer Posted February 23, 2005 Author Share Posted February 23, 2005 ill admit it, im eager and ready to roar, so, when i ask a noob question and my C++ code looks like crap, just say something, thanks FootbaG Link to comment Share on other sites More sharing options...
SumTingWong Posted February 23, 2005 Share Posted February 23, 2005 (edited) ill admit it, im eager and ready to roar, so, when i ask a noob question and my C++ code looks like crap, just say something, thanks <{POST_SNAPBACK}>You're asking noobyish questions and your C++ code looks like crap that's just been stepped on by Valik.....There, happy now? BUT, don't be discouraged! Keep plugging away and do take advice from people who in the know, such as those who have posted here. The best way to learn is through sheer bloody hard work. (Bloody hell, I sound like my dad ) Edited February 23, 2005 by pacman Link to comment Share on other sites More sharing options...
Henrik Posted February 23, 2005 Share Posted February 23, 2005 extern "C"__declspec(dllexport) int CreateConsole (char* szWhat2Write, char /n, int argc, char *argv[]) \\ do i need char /n? Does this really compile? IIRC the slash character is not permitted in identifier names. Ignorance is strength. Link to comment Share on other sites More sharing options...
layer Posted February 23, 2005 Author Share Posted February 23, 2005 i made up the char /n, thats not really in the compiled version of the Dll, thats why i put it here to see if anyone would notice FootbaG Link to comment Share on other sites More sharing options...
Henrik Posted February 24, 2005 Share Posted February 24, 2005 i made up the char /n, thats not really in the compiled version of the Dll, thats why i put it here to see if anyone would notice <{POST_SNAPBACK}>OK, I get it: You're not really a teenager trying to learn, but rather a member of the C++ standards committeee who only posts here to try and troll Valik Ignorance is strength. Link to comment Share on other sites More sharing options...
layer Posted February 24, 2005 Author Share Posted February 24, 2005 OK, I get it: You're not really a teenager trying to learn, but rather a member of the C++ standards committeee who only posts here to try and troll Valik <{POST_SNAPBACK}>hehehehehe FootbaG Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now