dev-cpp-users Mailing List for Dev-C++ (Page 40)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Per W. <pw...@ia...> - 2007-12-14 16:19:18
|
A golden rule: Never type in code in emails or forum posts - unless you _know_ that you are 100% perfect. One single little character wrong may completely wreck your chances to get a correct answer. /pwm EMA System email: pw...@ia... Per Westermark web: http://iapetus.neab.net Vargvaegen 174B phone: +46 70 214 74 48 S-906 42 Umeaa Sweden On Thu, 13 Dec 2007, Brad Woosley wrote: > Thank you very much, this solved my problem. In my origional file I did have a new line after the include statement, and it was there when I typed it into the e-mail. Anyways, adding the file did help, > > thanks again > > Wobien <roo...@pl...> wrote: > 1. You have to begin a new line after an include statement > 2. You have to include windows.h in wour resource file > succes! > wobien > ----- Original Message ----- > From: Brad Woosley > To: dev...@li... > Sent: Tuesday, December 11, 2007 9:45 PM > Subject: [Dev-C++] Dialouge boxes > > > I am attempting to learn how to use Win32 to create a GUI program but am having problems with the Dialouge boxes. > > Here is what I have done so far (the dashed line seperates files) > --------------------------------------------------- > Resource.h > > #define IDD_DLGFIRST 101 > -------------------------------------------------------- > Wind32D.rc > > > #include "Resource.h" IDD_DLGFIRST DIALOG 260, 200, 188, 95 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Win32 Programming" FONT 8, "MS Shell Dlg" BEGIN DEFPUSHBUTTON "OK", IDOK, 130, 10, 50, 14 END > > ------------------------------------------------------------ > Then, when I try to compile the program, I get an error. Included below is the text from the compiler tab, Resources tab, and Compile log. > > > C:\Documents and Settings\Bradley\Desktop\Win32\Project5\Makefile.win > [Build Error] [Project1_private.res] Error 1 > ---------------------------------------------------------------------- > Line 4 in file Win32D.rc : parse error > > ----------------------------------------------------------------- > Compiler: Default compiler > Building Makefile: "C:\Documents and Settings\Bradley\Desktop\Win32\Project5\Makefile.win" > Finding dependencies for file: C:\Documents and Settings\Bradley\Desktop\Win32\Project5\main.cpp > Executing make... > make.exe -f "C:\Documents and Settings\Bradley\Desktop\Win32\Project5\Makefile.win" all > windres.exe -i Project1_private.rc -I rc -o Project1_private.res -O coff > windres.exe: Win32D.rc:4: parse error > make.exe: *** [Project1_private.res] Error 1 > Execution terminated > ------------------------------------------------- > > Could anyone please tell me what it is that I am doing wrong? > > --------------------------------- > Looking for last minute shopping deals? Find them fast with Yahoo! Search. > --------------------------------- > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > --------------------------------- > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > --------------------------------- > Looking for last minute shopping deals? Find them fast with Yahoo! Search. |
From: Jessica C. <jes...@gm...> - 2007-12-14 16:11:22
|
one way to implement communication between 2 threads is "message passing". can anyone give me hint to implement it in win32 api? i guess it is "dispatchmessage" and "getmessage"? thanks, Jessica Chen |
From: Per W. <pw...@ia...> - 2007-12-14 15:53:21
|
Windows XP? Checking Alcohol 120 faq? Checking Vista faq? /pwm On Fri, 14 Dec 2007 rus...@ao... wrote: > A friend installed alcohol 120 on their vista machine. As soon as it finished installing he got the blue screen of death. He said that the machine kept trying to reboot but kept generating bios errors. He tried going into safe mode, but couldn't do that either. Recovery discs wouldn't load, nothing.... > ?Any ideas? > ________________________________________________________________________ > More new features than ever. Check out the new AOL Mail ! - http://webmail.aol.com > |
From: <rus...@ao...> - 2007-12-14 13:58:50
|
A friend installed alcohol 120 on their vista machine. As soon as it finished installing he got the blue screen of death. He said that the machine kept trying to reboot but kept generating bios errors. He tried going into safe mode, but couldn't do that either. Recovery discs wouldn't load, nothing.... ?Any ideas? ________________________________________________________________________ More new features than ever. Check out the new AOL Mail ! - http://webmail.aol.com |
From: Brad W. <c_b...@ya...> - 2007-12-14 00:45:49
|
Thank you very much, this solved my problem. In my origional file I did have a new line after the include statement, and it was there when I typed it into the e-mail. Anyways, adding the file did help, thanks again Wobien <roo...@pl...> wrote: 1. You have to begin a new line after an include statement 2. You have to include windows.h in wour resource file succes! wobien ----- Original Message ----- From: Brad Woosley To: dev...@li... Sent: Tuesday, December 11, 2007 9:45 PM Subject: [Dev-C++] Dialouge boxes I am attempting to learn how to use Win32 to create a GUI program but am having problems with the Dialouge boxes. Here is what I have done so far (the dashed line seperates files) --------------------------------------------------- Resource.h #define IDD_DLGFIRST 101 -------------------------------------------------------- Wind32D.rc #include "Resource.h" IDD_DLGFIRST DIALOG 260, 200, 188, 95 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Win32 Programming" FONT 8, "MS Shell Dlg" BEGIN DEFPUSHBUTTON "OK", IDOK, 130, 10, 50, 14 END ------------------------------------------------------------ Then, when I try to compile the program, I get an error. Included below is the text from the compiler tab, Resources tab, and Compile log. C:\Documents and Settings\Bradley\Desktop\Win32\Project5\Makefile.win [Build Error] [Project1_private.res] Error 1 ---------------------------------------------------------------------- Line 4 in file Win32D.rc : parse error ----------------------------------------------------------------- Compiler: Default compiler Building Makefile: "C:\Documents and Settings\Bradley\Desktop\Win32\Project5\Makefile.win" Finding dependencies for file: C:\Documents and Settings\Bradley\Desktop\Win32\Project5\main.cpp Executing make... make.exe -f "C:\Documents and Settings\Bradley\Desktop\Win32\Project5\Makefile.win" all windres.exe -i Project1_private.rc -I rc -o Project1_private.res -O coff windres.exe: Win32D.rc:4: parse error make.exe: *** [Project1_private.res] Error 1 Execution terminated ------------------------------------------------- Could anyone please tell me what it is that I am doing wrong? --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. --------------------------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php --------------------------------- _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. |
From: Rafael M. <so...@gm...> - 2007-12-13 23:31:53
|
Hi List Someone know or already done a c++ browser plug in with GUI (mean... c++ GUI)? I'm googling around for a couple of weeks and cant find anything useful. Another question: What is the fast way to parse a char[n]? I have a string like that: L 12/11/2007 - 15:56:45: "x6_Squibles<52><STEAM_0:1:3683971><TERRORIST>" attacked "x6_scottish<37><STEAM_0:1:1737><CT>" with "glock18" (damage "72") (damage_armor "0") (health "28") (armor "0") and like to split in different, say rows in a XML file. I can write the XML with no problem, but I'm stuck into many loops reading the string, see if I already pick that value, if, then, for.... well... isn't beauty at all. Its working, but way too complex. Thanks in advance. -- Regards Rafael Menezes |
From: Wobien <roo...@pl...> - 2007-12-13 10:46:08
|
1. You have to begin a new line after an include statement 2. You have to include windows.h in wour resource file succes! wobien ----- Original Message -----=20 From: Brad Woosley=20 To: dev...@li...=20 Sent: Tuesday, December 11, 2007 9:45 PM Subject: [Dev-C++] Dialouge boxes I am attempting to learn how to use Win32 to create a GUI program but = am having problems with the Dialouge boxes.=20 Here is what I have done so far (the dashed line seperates files) --------------------------------------------------- Resource.h #define IDD_DLGFIRST 101 -------------------------------------------------------- Wind32D.rc #include "Resource.h" IDD_DLGFIRST DIALOG 260, 200, 188, 95 STYLE = DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Win32 = Programming" FONT 8, "MS Shell Dlg" BEGIN DEFPUSHBUTTON "OK", = IDOK, 130, 10, 50, 14 END=20 ------------------------------------------------------------ Then, when I try to compile the program, I get an error. Included = below is the text from the compiler tab, Resources tab, and Compile log. C:\Documents and Settings\Bradley\Desktop\Win32\Project5\Makefile.win [Build Error] [Project1_private.res] Error 1 ---------------------------------------------------------------------- Line 4 in file Win32D.rc : parse error ----------------------------------------------------------------- Compiler: Default compiler Building Makefile: "C:\Documents and = Settings\Bradley\Desktop\Win32\Project5\Makefile.win" Finding dependencies for file: C:\Documents and = Settings\Bradley\Desktop\Win32\Project5\main.cpp Executing make... make.exe -f "C:\Documents and = Settings\Bradley\Desktop\Win32\Project5\Makefile.win" all windres.exe -i Project1_private.rc -I rc -o Project1_private.res -O = coff=20 windres.exe: Win32D.rc:4: parse error make.exe: *** [Project1_private.res] Error 1 Execution terminated ------------------------------------------------- Could anyone please tell me what it is that I am doing wrong?=20 -------------------------------------------------------------------------= ----- Looking for last minute shopping deals? Find them fast with Yahoo! = Search. -------------------------------------------------------------------------= ----- = -------------------------------------------------------------------------= SF.Net email is sponsored by:=20 Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php -------------------------------------------------------------------------= ----- _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: danilo\.ferrarotti\@libero\.it <dan...@li...> - 2007-12-13 10:20:05
|
Good morning, thank you to everybody, i've solved the problem with the project. Thank you D |
From: hhh h. <the...@ho...> - 2007-12-12 16:05:26
|
Per Westermark, I apologize, I did not review my last email before sending it. Let me try to elaborate... I see some co-relations of my concept with your second paragraph. My main idea is to have a internal "plug-in" structure, based on two Linked Lists... One is a Message Queue, shared by all the "internal plug-ins". /** @code : */ struct Message { char bUrgentMessage; long lToPlugin;/** @brief containing signature of the intended plugin */ void* vData; /** @brief Data of variable length and type */ struct* Message } struct Plugin { long lPluginSignature; /** @brief Plugin Signature */ char sPlugin_Name[32]; int (*Plugin_Constructor )( void **vData ); int (*Plugin_Main )( void **vData ); int (*Plugin_Destructor )( void **vData ); } /** @brief When we created a internal plugin, we would just create a static object and assign our own made functions into those pointers, then add a line into a function that does all the loading, creating therefore a dynamically amount of internal plugins, by linking them all together and in run time cycling through them delivering messages. This method also provides me a way to message through my plugins... */ /** ! @code */ As the exterior plugins are concerned, I am thinking of using an internal plugin to load exterior ones... and seek out always the same named functions by GetProcAddress() by that is seeming a quite hazardous scheme as I am sure to get in trouble if a malicious DLL gets loaded into process... Could you advise me on that? Maybe I could, as you state, run some of the plug ins in threads... That would help me in processing information much faster, as this is designed to be a Database Server with HTTP and other capabilities built in . But I am not so sure about that shared memory statement. How can I share memory ? ... I do not want to be a CPU hog ( :) ) I am sorry that I cannot give out any more code... I haven't any, as this is mainly a theoretical design. >From: Per Westermark <pw...@ia...> >To: hhh hhh <the...@ho...> >CC: sam...@gm..., >Dev...@li...,dar...@gm..., >ps...@el... >Subject: Re: [Dev-C++] A Plugin Engine for my Application >Date: Wed, 12 Dec 2007 15:31:17 +0100 (CET) > >Too little information given. > >You can load plugin modules as DLL files - one or more plugins/DLL. > >You will have a hard time protecting your program from ending if the >plugin is badly written. Windows kills broken programs, not broken >plugins. Maybe you can run the individual plugins as separate programs, >but then you must check into shared memory, sockets etc for >sending/receiving data between main program and plugin. > >You haven't written anything about how much data each plugin needs to do >it's work. You haven't mentioned how long running time a plugin may >require for a call. You haven't specified expected # of calls/time unit. >You haven't discussed any requirements for concurrent operation of >multiple plugins, or how long time a plugin may consume before returning >(potentially with an answer). > >The paragraph "To be clear" is most definitely not clear. It almost sounds >like you are talking about a driver layer either interfacing below the >Win32 API, or between the Win32 API and the plugins. But too little >details and no information about what problem you want to solve. > >/pwm > >On Wed, 12 Dec 2007, hhh hhh wrote: > > > > > Hi. I am developing a application, where my developmental concept is a > > hierarchical set of platform. > > > > I have a platform, at the very start of my tree-like app. This >platform I > > gave the name "plugin_engine". > > Its basically two Linked Lists, one with function pointers (struct > > Plugin), and the other with data structs(struct Message)... > > The ideia is to itenerate through the Plugin Linked List, and > > subsequentially through the Message Linked List. > > If a Message ( read "a member of struct Message** LinkedList") is > > designated to a defined Plugin ( read "a member of struct Plugin** > > LinkedList ") we give the control to the plugin main function ( Remember > > that struct Plugin has function pointer members. ) > > > > The first conceptual challange I have is... How to integrate the Win32 >API > > into that Plugin platform ? > > To be clear, I wan't my platform at the very first start of the >design > > and not as a branch of Win32 Windowing API, so i can also have complete > > control over files/socket operation, and users databases (Also to be > > included) > > I cannot have a critical error that forces my app to break... I wish >to > > maintain the most control possible. > > The second is : How can I also create a dynamic plugin structure? Load > > exterior plugins developed for my app? > > > > _________________________________________________________________ > > Transfira JÁ a última versão do Windows Live Messenger! > > http://get.live.com/pt-pt/messenger/overview > > > > > > >------------------------------------------------------------------------- > > SF.Net email is sponsored by: > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > >------------------------------------------------------------------------- >SF.Net email is sponsored by: >Check out the new SourceForge.net Marketplace. >It's the best place to buy or sell services for >just about anything Open Source. >http://sourceforge.net/services/buy/index.php >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Transfira JÁ a última versão do Windows Live Messenger! http://get.live.com/pt-pt/messenger/overview |
From: Per W. <pw...@ia...> - 2007-12-12 14:47:02
|
Too little information given. You can load plugin modules as DLL files - one or more plugins/DLL. You will have a hard time protecting your program from ending if the plugin is badly written. Windows kills broken programs, not broken plugins. Maybe you can run the individual plugins as separate programs, but then you must check into shared memory, sockets etc for sending/receiving data between main program and plugin. You haven't written anything about how much data each plugin needs to do it's work. You haven't mentioned how long running time a plugin may require for a call. You haven't specified expected # of calls/time unit. You haven't discussed any requirements for concurrent operation of multiple plugins, or how long time a plugin may consume before returning (potentially with an answer). The paragraph "To be clear" is most definitely not clear. It almost sounds like you are talking about a driver layer either interfacing below the Win32 API, or between the Win32 API and the plugins. But too little details and no information about what problem you want to solve. /pwm On Wed, 12 Dec 2007, hhh hhh wrote: > > Hi. I am developing a application, where my developmental concept is a > hierarchical set of platform. > > I have a platform, at the very start of my tree-like app. This platform= I > gave the name "plugin_engine". > Its basically two Linked Lists, one with function pointers (struct > Plugin), and the other with data structs(struct Message)... > The ideia is to itenerate through the Plugin Linked List, and > subsequentially through the Message Linked List. > If a Message ( read "a member of struct Message** LinkedList") is > designated to a defined Plugin ( read "a member of struct Plugin** > LinkedList ") we give the control to the plugin main function ( Remember > that struct Plugin has function pointer members. ) > > The first conceptual challange I have is... How to integrate the Win32 = API > into that Plugin platform ? > To be clear, I wan't my platform at the very first start of the design > and not as a branch of Win32 Windowing API, so i can also have complete > control over files/socket operation, and users databases (Also to be > included) > I cannot have a critical error that forces my app to break... I wish t= o > maintain the most control possible. > The second is : How can I also create a dynamic plugin structure? Load > exterior plugins developed for my app? > > _________________________________________________________________ > Transfira J=C1 a =FAltima vers=E3o do Windows Live Messenger! > http://get.live.com/pt-pt/messenger/overview > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: hhh h. <the...@ho...> - 2007-12-12 14:11:15
|
Hi. I am developing a application, where my developmental concept is a hierarchical set of platform. I have a platform, at the very start of my tree-like app. This platform I gave the name "plugin_engine". Its basically two Linked Lists, one with function pointers (struct Plugin), and the other with data structs(struct Message)... The ideia is to itenerate through the Plugin Linked List, and subsequentially through the Message Linked List. If a Message ( read "a member of struct Message** LinkedList") is designated to a defined Plugin ( read "a member of struct Plugin** LinkedList ") we give the control to the plugin main function ( Remember that struct Plugin has function pointer members. ) The first conceptual challange I have is... How to integrate the Win32 API into that Plugin platform ? To be clear, I wan't my platform at the very first start of the design and not as a branch of Win32 Windowing API, so i can also have complete control over files/socket operation, and users databases (Also to be included) I cannot have a critical error that forces my app to break... I wish to maintain the most control possible. The second is : How can I also create a dynamic plugin structure? Load exterior plugins developed for my app? _________________________________________________________________ Transfira JÁ a última versão do Windows Live Messenger! http://get.live.com/pt-pt/messenger/overview |
From: Per W. <pw...@ia...> - 2007-12-12 11:11:41
|
When compiling, you should have a header file that contains the declaration for the gcd function. The actual implementation may be in a separate source file, but the compiler must be able to see return type and what parameters the gcd function takes. Do you have any book on C or C++ programming? Dev-C++ uses the MinGW compiler, but it doesn't matter what compiler is used. The requirements are specified by the language, not by the specific compilers. /pwm On Wed, 12 Dec 2007, dan...@li... wrote: > Sorry, i don't want to disturb, i apologize. > > I tried to add in a project the three files, but when i compile the project i have in output: > 26 C:\Documents and Settings\the piper\Desktop\programmi C++\prova.cpp `gcd' undeclared (first use this function) > > i know to solve the problem only putting the gcd function inside the header file, i don't know other solution. Do you? > > D > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: danilo\.ferrarotti\@libero\.it <dan...@li...> - 2007-12-12 11:03:27
|
Sorry, i don't want to disturb, i apologize. I tried to add in a project the three files, but when i compile the proje= ct i have in output: 26 C:\Documents and Settings\the piper\Desktop\programmi C++\prova.cpp `g= cd' undeclared (first use this function) i know to solve the problem only putting the gcd function inside the head= er file, i don't know other solution. Do you? D |
From: Per W. <pw...@ia...> - 2007-12-12 10:20:14
|
Having read a mail doesn't mean I must answer it. This is a public mailing list, where people write answers if they want to and have the time. A little playing around (especially trying out that right mouse button of yours) should quite quickly give you an idea how to add more source files to a project. Most integrated development environments tend to function in regular - and expected - ways, with expected interface methods to perform standard actions. Which source files that belongs to a project is very much something that involves the project. Have you taken a closer look at your project? /pwm On Wed, 12 Dec 2007, dan...@li... wrote: > Sorry, > > have you received my last e-mail? i don't know how to add the gcd.cpp file.. > > thanks a lot > > DF > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: danilo\.ferrarotti\@libero\.it <dan...@li...> - 2007-12-12 09:18:02
|
Sorry, have you received my last e-mail? i don't know how to add the gcd.cpp fil= e.. thanks a lot DF |
From: danilo\.ferrarotti\@libero\.it <dan...@li...> - 2007-12-11 22:52:21
|
Thank you for the information. But how could i link the gcd.cpp file to t= he project? Sorry but i don't have idea.. thanks a lot Danilo |
From: Per W. <pw...@ia...> - 2007-12-11 22:17:11
|
No, there is no zip file enclosed. On the other hand: how many people do you think bother to look at attached zip files? Try to manage with just text descriptions of problems, and wait with attachments until someone requests it. Anyway, you must add the gcd.cpp file to your project, so that it gets compiled and linked. The header files are just there to inform the compiler about available symbols and data types. Including a header file will not inform the linker what object files that are needed to build the application. /pwm On Tue, 11 Dec 2007, dan...@li... wrote: > Good evening everybody, > > i have a problem with the mailing list of Dev-C++ and also with this program. I'm a C++ student and In my book the gcd.cpp is an external file from header file localmath.h but if i try to compile the prova.cpp i receive a linker error for undefined link to gcd function., otherwise if i put the gcd definition inside the localmath.h as the abs function everything is correct. Could anyone explain me why? and how could i use the gcd function defined externaly from localmath.h without an error? > > the programs are in the zip file enclosed. > > thanks very much to everybody > > Danilo > > > > |
From: danilo\.ferrarotti\@libero\.it <dan...@li...> - 2007-12-11 22:11:00
|
Good evening everybody, i have a problem with the mailing list of Dev-C++ and also with this prog= ram. I'm a C++ student and In my book the gcd.cpp is an external file fro= m header file localmath.h but if i try to compile the prova.cpp i receive= a linker error for undefined link to gcd function., otherwise if i put t= he gcd definition inside the localmath.h as the abs function everything i= s correct. Could anyone explain me why? and how could i use the gcd funct= ion defined externaly from localmath.h without an error? the programs are in the zip file enclosed. thanks very much to everybody Danilo |
From: Brad W. <c_b...@ya...> - 2007-12-11 20:45:40
|
I am attempting to learn how to use Win32 to create a GUI program but am having problems with the Dialouge boxes. Here is what I have done so far (the dashed line seperates files) --------------------------------------------------- Resource.h #define IDD_DLGFIRST 101 -------------------------------------------------------- Wind32D.rc #include "Resource.h" IDD_DLGFIRST DIALOG 260, 200, 188, 95 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Win32 Programming" FONT 8, "MS Shell Dlg" BEGIN DEFPUSHBUTTON "OK", IDOK, 130, 10, 50, 14 END ------------------------------------------------------------ Then, when I try to compile the program, I get an error. Included below is the text from the compiler tab, Resources tab, and Compile log. C:\Documents and Settings\Bradley\Desktop\Win32\Project5\Makefile.win [Build Error] [Project1_private.res] Error 1 ---------------------------------------------------------------------- Line 4 in file Win32D.rc : parse error ----------------------------------------------------------------- Compiler: Default compiler Building Makefile: "C:\Documents and Settings\Bradley\Desktop\Win32\Project5\Makefile.win" Finding dependencies for file: C:\Documents and Settings\Bradley\Desktop\Win32\Project5\main.cpp Executing make... make.exe -f "C:\Documents and Settings\Bradley\Desktop\Win32\Project5\Makefile.win" all windres.exe -i Project1_private.rc -I rc -o Project1_private.res -O coff windres.exe: Win32D.rc:4: parse error make.exe: *** [Project1_private.res] Error 1 Execution terminated ------------------------------------------------- Could anyone please tell me what it is that I am doing wrong? --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. |
From: Jessica C. <jes...@gm...> - 2007-12-11 16:07:29
|
How to implement the "let the RS232 thread send message to the GUI thread" for updating the GUI? Can you give us a pseudo code for it? I guess you will formulate a message in RS232 thread, then let the GUI thread to get this message by PeekMessage(). ?? I agree that "you normally don't generate an update event every character". So I am thinking to generate an update event every message. I mean, after I get the whole message (including end-of message character), I am thinking to give out an indication to GUI that we got an full message. What shall I do for it? Do I need to set a flag here to give out this kind indication? OR win32 API provide us functions to do that? If I want to use RS232 thread to receive data, and GUI thread display data. Do I need create two buffers in RS232 thread? Back-end buffer is used to receive data, while front-end buffer is used to provide data to the GUI thread. What is the basic (classic) design for this problem? =============== One alternative is to let the RS232 thread send messages to the GUI thread. Either with the serial data, or just as information that there are serial data available. On Dec 7, 2007 6:56 AM, Per Westermark <pw...@ia...> wrote: > The RS232 API in Windows supports event-driven processing. You can get an > event when a receive buffer is full, a specific 'match' character is > received or there has been a timeout between two characters. > > A match character is maningful to catch a line-break in ASCII protocols, > or the end-of-message byte in a binary protocol. > > You normally don't let the RS232 thread process characters one at a time, > so you normally don't generate an update event every character. When > implementing a chat, the RS232 code will normally trig on the pause > between individual characters, resulting in a character-at-a-time update > of the GUI. If the user pastes a large block of text, the serial driver > will instead generate events based on serial buffer size with an optional > time-out event after the paste. Is the receive buffer large enough, the > paste will only result in a single timeout event, i.e. a single GUI > update. > > A computer-driven communication will on the other hand trig on buffer-full > events or the end-of-message event from the filter character, and allowing > updates of the GUI a message at a time or a full serial buffer at a time. > For this kind of communication, the GUI would normally not display actual > data, but instead transfer statistics, i.e. # of packets, # of bytes, # of > resends or similar. > > In the end, there will normally not be a problem with a dying GUI > overloaded by more and more cached events, since the amount of events > will normally be limited by the RS232 configuration. A correct > implementation of the GUI would also make use of PeekMessage() whenever > it receives an update event but before it performs the updating. This > allows multiple pending update events to only result in a single screen > redraw. > > A message-based solution will consume zero processing power when the > serial channel is idle, and will generate redraw load corresponding to > buffer size, timeout and end-of-message intervals when data is arriving. > > /pwm > > On Thu, 6 Dec 2007, Chris Miller wrote: > > > On Dec 6, 2007 2:41 AM, Per Westermark <pw...@ia...> wrote: > > > One alternative is to let the RS232 thread send messages to the GUI > > > thread. Either with the serial data, or just as information that there > are > > > serial data available. > > > > > > /pwm > > > > I would like to note that this does have a significant drawback. > > > > If you have to update the GUI every time something happens, it has a > > tendency to lag in a big way. > > > > You can alleviate this by only updating every X updates, however, this > > adds a problem of constantly checking whether or not the update > > threshold has been reached. It's far simpler to use the mutex > > approach, even though it is slightly more difficult to implement and > > harder to understand (if you're not familiar with it). > > > > Once I tried having the working thread update the GUI in Java.... > > locked up the whole GUI during operation, so if you wanted to kill it > > you'd have to kill the running JVM - not fun! > > > > -- > > Registered Linux Addict #431495 > > http://profile.xfire.com/mrstalinman > > John 3:16! > > If Microsoft is the Wal*Mart of the Software World, then Linux is the > Home Depot > > > > |
From: Jessica C. <jes...@gm...> - 2007-12-11 15:39:53
|
thanks for your reply. btw, what is "hook control" u mentioned here? On Dec 8, 2007 9:06 AM, hhh hhh <the...@ho...> wrote: > Check in MSDN ... There must me a Message to the main window when you > click > on it, prob a WM_UPDATE ou WM_PAINT something like that. > > > The sollution for the button thing, is disabling it on its proprieties. O= r > hide the button with the apropriated function to Show windows, I believe > its > ShowWindow, with the sw_hide code. > > Hope this helps. Did o check out hook controls for the RS323 code? or, > hmm, > probably SetDeviceIO() function? > > > Keep us posted > > _________________________________________________________________ > Transfira J=C1 a =FAltima vers=E3o do Windows Live Messenger! > http://get.live.com/pt-pt/messenger/overview > > |
From: Per W. <pw...@ia...> - 2007-12-10 23:38:02
|
Yes, Google is very good at showing example code. /pwm On Mon, 10 Dec 2007 ili...@at... wrote: > > > >I'm kinda new to Winsock programming. I downloaded some > >good tutorials that I can learn from, but I was wondering > >if anyone could tell me if I can send data to a server > >from a client using send() and how do I do it in Dev? Is > >there something that i have to do to get it to work? > Remember what Dev-cpp is only ID. > > 1. U need create socket by old_socket = socket(...) > 2. bind(old_socket, ...). > 3. new_socket = listen(old_socket, ....) > 4. recv(new_socket, buf, buf_length) > 5. do something with buf. > 6. close both sockets; > 7. another turns. > > I'm not exactly getting how this would work. Would anyone > perhaps be able to show me example code for this? > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: <ili...@at...> - 2007-12-10 23:17:49
|
>I'm kinda new to Winsock programming. I downloaded some >good tutorials that I can learn from, but I was wondering >if anyone could tell me if I can send data to a server >from a client using send() and how do I do it in Dev? Is >there something that i have to do to get it to work? Remember what Dev-cpp is only ID. 1. U need create socket by old_socket = socket(...) 2. bind(old_socket, ...). 3. new_socket = listen(old_socket, ....) 4. recv(new_socket, buf, buf_length) 5. do something with buf. 6. close both sockets; 7. another turns. I'm not exactly getting how this would work. Would anyone perhaps be able to show me example code for this? |
From: Jessica C. <jes...@gm...> - 2007-12-10 15:12:32
|
i met that problem before. because i have Eclipse CDT(based on MinGW) and Dev-cpp both installed in my system. after i un-installed Eclipse CDT , and re-installed Dev-cpp, Dev-cpp works fine. i think the problem is dev-cpp and eclipse cdt conflicts each other. anyway, try to firstly un-installed any other stuffs about MinGW, then install Dev-cpp to see. On Dec 9, 2007 9:46 PM, Xu Bruce <xb...@gm...> wrote: > Hi,anyone who can help me?When I compile any program,"[Linker Error] > undefined reference to `__cpu_features_init' ld returned 1 exit status > C:\Documents and Settings\Administrator\My Documents\Makefile.win [Build > Error] exe: *** [Output/MingW/TestDlg.exe] Error 1 " occurs. > Regards > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > |
From: Chris M. <lor...@gm...> - 2007-12-10 05:04:14
|
On Dec 7, 2007 2:24 PM, Chris Miller <lor...@gm...> wrote: > Google for a book called "thinking in c," because it has a few > algorithms I think would interest you. Oops.. I'm terribly sorry... I got two books mixed up. You want _Numerical Recipies_ in C (freely downloadable, IIRC), not Thinking in C. http://www.nr.com/ -- Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman John 3:16! If Microsoft is the Wal*Mart of the Software World, then Linux is the Home Depot |