dev-cpp-users Mailing List for Dev-C++ (Page 396)
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: Derek C. <der...@ho...> - 2003-04-19 17:47:46
|
Hi I have just started using dev c++ v4.98 and am experiencing problems connecting via ado to an access database using code that previously worked under visual studio 6. The code I have used previously is: #import "c:\program files\common files\system\ado\msado15.dll" \ // This code comes from : www.geocities.com/mokarrabin #include <stdio.h> #include <windows.h> #include <iostream> using namespace std; int memscan(void) { int istopped =1001; int flagged=1001; CoInitialize(NULL); char storeVal[100]; try { _RecordsetPtr pRst("ADODB.Recordset"); // Connection String _bstr_t strCnn("DRIVER={Microsoft Access Driver (*.mdb)};UID=admin;DBQ=data.mdb"); // Open table pRst->Open("SELECT * FROM tblProg", strCnn, adOpenStatic, adLockReadOnly, adCmdText); pRst->MoveFirst(); while (!pRst->EOF) { strcpy (storeVal,(char*) ((_bstr_t) pRst->GetFields()->GetItem("prog_process")->GetValue())); pRst->MoveNext(); } pRst->Close(); } catch (_com_error &e) { filewrite((char*) e.Description()); } ::CoUninitialize(); return 0; } This however generates to many warning and refuses to compile. Any alternative ideas would be appreciated. Regards Derek _________________________________________________________________ Hotmail now available on Australian mobile phones. Go to http://ninemsn.com.au/mobilecentral/hotmail_mobile.asp |
|
From: Daniel G. <sp...@ho...> - 2003-04-19 14:10:30
|
I'm reposting this to the list as I'm unsure...does it compile when not going for win32 ? >From: NBarnes <nw_...@ya...> >To: Daniel Glenfield <sp...@ho...> >Subject: Re: [Dev-C++] WinMain@16 linker error, help needed >Date: Sat, 19 Apr 2003 03:56:07 -0700 (PDT) > > >--- Daniel Glenfield <sp...@ho...> wrote: > > > WinMain error? you need a winmain function, the entry point to your > > program, do you have that? > > > > WinMain parameters are ifferent I think. > > According to the documentation for Simple DirectMedia Layer, which >I'm using, to maintain platform independance, the use of main() is >preserved, with SDL calling WinMain behind the scenes if the code is >compiled for Win32. > > What I've read about this error suggests that it's not related to >SDL, though, but rather to Cygwyn. (Which statement, by the way, >pretty much exhausts my understanding of the problem I'm having. :/). > > NBarnes > >__________________________________________________ >Do you Yahoo!? >The New Yahoo! Search - Faster. Easier. Bingo >http://search.yahoo.com _________________________________________________________________ Get Hotmail on your mobile phone http://www.msn.co.uk/mobile |
|
From: Daniel G. <sp...@ho...> - 2003-04-19 08:32:33
|
WinMain error? you need a winmain function, the entry point to your program, do you have that? WinMain parameters are ifferent I think. >From: NBarnes <nw_...@ya...> >To: dev...@li... >Subject: [Dev-C++] WinMain@16 linker error, help needed >Date: Fri, 18 Apr 2003 22:01:12 -0700 (PDT) > > > Hello, all, > > I am having some trouble getting Dev-C++ working to compile my current >project. The compile goes fine, but I get one linker error that reads: > >C:/DEV-CPP/lib/libmingw32.a(main.o)(.text+0x7f):main.c: undefined >reference to `WinMain@16' > > There are several references to errors like this one that I've found >through Google, including several useful looking ones at: > > http://cygwin.com/faq/faq_4.html#SEC92 > http://www.cygwin.com/ml/cygwin/2001-01/msg00612.html > http://www.bloodshed.net/dev/faq.html#winmain > http://sources.redhat.com/ml/cygwin/1999-05/msg00352.html > > However, none of these links quite speak to my problem. Several >refer to adding a main() function to my program, but I already have a >int main(int argc, char *argv[]) {} function, and adding a int main() >function doesn't seem to help. > > One of the other major solutions involves tweaking one's linker >command line options. How does one do this in Dev-C++ 4.9.7.8? The >screenshot shown in the help file for the Project Options box does not >correspond to what I see in 4.9.7.8, as my version doesn't have an >text box where I can change the linker options. > > In short, I'm confused and could use some help. Thanks to anybody >that can take a few minutes to give me a hand. > > NBarnes > >__________________________________________________ >Do you Yahoo!? >The New Yahoo! Search - Faster. Easier. Bingo >http://search.yahoo.com > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Get Hotmail on your mobile phone http://www.msn.co.uk/mobile |
|
From: <fer...@te...> - 2003-04-19 06:20:09
|
I used it, but i get some linker errors, this is the output, the program is your sample Compilador: Default compiler Building Makefile: "C:\DEV-CPP\Makefile.win" Finding dependencies for file: C:\DEV-CPP\arq.c Executando make... make.exe -f "C:\DEV-CPP\Makefile.win" all g++.exe arq.o -o "Projeto1.exe" -L"C:/DEV-CPP/lib" -I"C:/DEV-CPP/include" -I"C:/DEV-CPP/include" -IC:/DEV-CPP/include/gtk-2.0 -IC:/DEV-CPP/lib/gtk-2.0/include -IC:/DEV-CPP/include/atk-1.0 -IC:/DEV-CPP/include/pango-1.0 -LC:/DEV-CPP/lib -IC:/DEV-CPP/include/glib -IC:/DEV-CPP/lib/glib-2.0/include arq.o(.text+0x28):arq.c: undefined reference to `gtk_init_abi_check' arq.o(.text+0x35):arq.c: undefined reference to `gtk_window_new' arq.o(.text+0x4d):arq.c: undefined reference to `gtk_main_quit' arq.o(.text+0x62):arq.c: undefined reference to `g_type_check_instance_cast' arq.o(.text+0x6d):arq.c: undefined reference to `g_signal_connect_data' arq.o(.text+0x7e):arq.c: undefined reference to `gtk_widget_show' arq.o(.text+0x86):arq.c: undefined reference to `gtk_main' Execução terminada This is in linker options -LC:/DEV-CPP/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv appear that it´s placing compiler options in linker options? PS: sorry by my english! Daniel K. O. escreveu: > > In the following web site > > http://www.gimp.org/~tml/gimp/win32/ > > I got many libs and files, I am completely lost! > > I need help and directions on which files I have to > > download. > > > >You need the dev files for GTK+ 2.2.1; this one requires glib, atk, pango, >zlib, libpng, libjpeg and libtiff (this is written on that page), so you >also need to download them (the dev version, if there's more than one). >Unzip everything on dev-cpp's directory (or under MinGW's directory, if you >have it installed somewhere else); > > > > > > Then I step by step procedure on how to integrate it. > > compiler flags, etc. > > > >Download the pkg-config too; if you use a unix-like shell (like MSYS) you >can use it to compile your gtk programs, like on the Gtk documentation: > >gcc program.c -o program.exe `pkg-config gtk+-2.0 --libs --cflags` > > >If you don't want to use a shell to compile your programs, you'll need to >copy/paste the output for: > > >C (or C++) Compiler Flags: > > pkg-config gtk+-2.0 --cflags > > (it will return something like: > -IC:/DEV-CPP/include/gtk-2.0 > -IC:/DEV-CPP/lib/gtk-2.0/include > -IC:/DEV-CPP/include/atk-1.0 > -IC:/DEV-CPP/include/pango-1.0 > -IC:/DEV-CPP/include/glib-2.0 > -IC:/DEV-CPP/lib/glib-2.0/include > ) > > > >Linker Options: > > pkg-config gtk+-2.0 --libs > > (will be something like: > -LC:/DEV-CPP/lib > -lgtk-win32-2.0 > -lgdk-win32-2.0 > -latk-1.0 > -lgdk_pixbuf-2.0 > -lpangowin32-1.0 > -lgdi32 > -lpango-1.0 > -lgobject-2.0 > -lgmodule-2.0 > -lglib-2.0 > -lintl > -liconv > ) > > > >So, you can copy/paste it on a GTK+ project on Dev-Cpp. Oh, one more thing: >add the "-mms-bitfields" to the C/C++ flags. > > >Optionally, you can use this as your GTK+ Template (I use this one): > > > >- 8< - 8< - 8< - 8< - 8< - 8< - 8< - 8< - 8< - 8< - 8< - 8< - > > > >[Template] >ver=1 >Name=GTK >Icon=Gtk.ico >Description=Create a GUI using Gtk. >Catagory=GUI > >[Unit0] >C=Gtk.txt >Cpp=Gtk.txt >CName=main.c >CppName=main.cpp > >[Project] >UnitCount=1 >Type=0 >IsCpp=0 >Compiler=-mms-bitfields_@@_-I"<INCLUDE>\glib-2.0"_@@_-I"<INCLUDE>\atk-1.0"_@ >@_-I"<INCLUDE>\gtk-2.0"_@@_-I"<INCLUDE>\pango-1.0"_@@_-I"<LIB>\glib-2.0\incl >ude"_@@_-I"<LIB>\gtk-2.0\include" >CppCompiler=-mms-bitfields_@@_-I"<INCLUDE>\glib-2.0"_@@_-I"<INCLUDE>\atk-1.0 >"_@@_-I"<INCLUDE>\gtk-2.0"_@@_-I"<INCLUDE>\pango-1.0"_@@_-I"<LIB>\glib-2.0\i >nclude"_@@_-I"<LIB>\gtk-2.0\include" >Linker=-lgtk-win32-2.0_@@_-lgdk-win32-2.0_@@_-latk-1.0_@@_-lgdk_pixbuf-2.0_@ >@_-lpangowin32-1.0_@@_-lgdi32_@@_-lpango-1.0_@@_-lgobject-2.0_@@_-lgmodule-2 >.0_@@_-lglib-2.0_@@_-lintl_@@_-liconv >Name=GTK+ Project >ProjectIcon=Gtk.ico > > > >- >8 - >8 - >8 - >8 - >8 - >8 - >8 - >8 - >8 - >8 - >8 - >8 - > > >The "Gtk.txt" file contains a small sample, that I use for almost every GTK+ >program: > >---- >#include <gtk/gtk.h> > >GtkWidget *win; > >int main(int argc, char *argv[]) >{ > gtk_init(&argc, &argv); > > win = gtk_window_new(GTK_WINDOW_TOPLEVEL); > g_signal_connect(G_OBJECT(win), "destroy", >G_CALLBACK(gtk_main_quit), NULL); > gtk_widget_show(win); > > gtk_main(); >} >--- > > > > > > > > > > I tried to browse this list files, but I could not get > > clear information ( at least to me ) on how to do > > that. > > > >I answered this question a few times here, but I'll forgive you, the search >engine on SourceForge is broken... :) > > > > >Daniel K. O. > > >Only ask questions with yes/no answers if you want "yes" or "no" as the >answer. >http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-no-an >swers.html > > > > > > > > > >------------------------------------------------------- >This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger >for complex code. Debugging C/C++ programs can leave you feeling lost and >disoriented. TotalView can help you find your way. Available on major UNIX >and Linux platforms. Try it free. www.etnus.com >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >. > > > |
|
From: NBarnes <nw_...@ya...> - 2003-04-19 05:01:18
|
Hello, all, I am having some trouble getting Dev-C++ working to compile my current project. The compile goes fine, but I get one linker error that reads: C:/DEV-CPP/lib/libmingw32.a(main.o)(.text+0x7f):main.c: undefined reference to `WinMain@16' There are several references to errors like this one that I've found through Google, including several useful looking ones at: http://cygwin.com/faq/faq_4.html#SEC92 http://www.cygwin.com/ml/cygwin/2001-01/msg00612.html http://www.bloodshed.net/dev/faq.html#winmain http://sources.redhat.com/ml/cygwin/1999-05/msg00352.html However, none of these links quite speak to my problem. Several refer to adding a main() function to my program, but I already have a int main(int argc, char *argv[]) {} function, and adding a int main() function doesn't seem to help. One of the other major solutions involves tweaking one's linker command line options. How does one do this in Dev-C++ 4.9.7.8? The screenshot shown in the help file for the Project Options box does not correspond to what I see in 4.9.7.8, as my version doesn't have an text box where I can change the linker options. In short, I'm confused and could use some help. Thanks to anybody that can take a few minutes to give me a hand. NBarnes __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com |
|
From: Eugene K. <erk...@ho...> - 2003-04-19 00:26:59
|
Hi evry1 Can any1 plz point me in th direction of sum downloadable source projects such as th 1's in the Dev-C++ Examples folder? Iv found the study of them to b far more educational than any books or tut's iv read. i.e. you can change stuff, recompile, && see wot happens. Iv also found 'sniplets' very handy but outdated. are there any other libraries you cood recomend? Thanx & happy easter. Eugene _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail |
|
From: vitamin <vit...@nc...> - 2003-04-18 18:24:46
|
If you want to show your bitmaps in your toolbar button
NOT use CreateToolbarEx() function
and NOT use SendMessage(hToolbar,TB_ADDBITMAP,(WPARAM)3,(LPARAM)&tbab);
ONLY standard toolbar buttons can normal execute.
I tried many times, and got no error, no warning, and only close
application.
I think that the commctrl.a maybe is old.
Only imagelist can run.
And need to add #define TB_SETIMAGELIST (WM_USER + 48) in your commctrl.h
void ToolBar::CreateToolBar(void)
{
_tbhwnd=CreateWindowEx(WS_EX_DLGMODALFRAME,TOOLBARCLASSNAME,NULL,
WS_CHILD|WS_VISIBLE|TBSTYLE_FLAT|CCS_ADJUSTABLE|CCS_NODIVIDER,
0,0,0,0,_hwnd,NULL,_hwnd.GetInstance(),NULL);
HIMAGELIST hImage;
HBITMAP hBitImage;
hBitImage = LoadBitmap(_hwnd.GetInstance(), MAKEINTRESOURCE(IDTB_BMP));
hImage = ImageList_Create(16, 16, ILC_COLOR32| ILC_MASK , 12, 1);
ImageList_AddMasked(hImage, hBitImage, RGB(255, 255, 255));
SendMessage(_tbhwnd, TB_SETIMAGELIST, (WPARAM)0, (WPARAM)hImage);
DeleteObject(hBitImage);
}
void ToolBar::InitToolBar(void)
{
tool_bar_buttons[0].iBitmap=0;
tool_bar_buttons[0].idCommand=CM_FILE_NEW;
tool_bar_buttons[0].fsState=TBSTATE_ENABLED;
tool_bar_buttons[0].fsStyle=TBSTYLE_BUTTON;
tool_bar_buttons[0].dwData =0;
tool_bar_buttons[0].iString=0;
tool_bar_buttons[1].iBitmap=1;
tool_bar_buttons[1].idCommand=CM_FILE_LOAD;
tool_bar_buttons[1].fsState=TBSTATE_ENABLED;
tool_bar_buttons[1].fsStyle=TBSTYLE_BUTTON;
tool_bar_buttons[1].dwData =0;
tool_bar_buttons[1].iString=0;
// and others
SendMessage(_tbhwnd,TB_ADDBUTTONS,17,(LPARAM)(LPTBBUTTON)&tool_bar_buttons);
}
|
|
From: Per W. <pw...@ia...> - 2003-04-18 16:03:21
|
First, if the toolbar was created with CreateWindowEx, you must send a
TB_BUTTONSTRUCTSIZE message before the TB_ADDBUTTONS.
Second - note the similarity of an array and a pointer. &myarray[0] is
same as myarray, i.e. a pointer to an entry. &myarray is a pointer to a
pointer to an entry. Should you really take the address of tbb as last
parameter of SendMessage().
/Per W
On Fri, 18 Apr 2003, Vlada Djurovic wrote:
> Hi, everybody.
>
> Here's another problem I'm having. I'm trying to create toolbar with my own
> bitmap images, so I did the following:
>
> 1. I painted one 48x16 pixel bitmap using Paint, which should contain images
> for 3 toolbar buttons
> 2. Defined ID for bitmap resource in header and added a line in .rc file
> (ID_BITMAP BITMAP "image.bmp")
> 3. Finaly, I wrote a code to create toolbar.
>
> --------begin code------
> INITCOMMONCONTROLSEX icx;
> icx.dwSize=sizeof(INITCOMMONCONTROLSEX);
> icx.dwICC=ICC_BAR_CLASSES;
> InitCommonControlsEx(&icx);
> HWND hToolbar;
>
> switch (message) /* handle the messages */
> {
> case WM_CREATE:
>
> hToolbar=CreateWindowEx(WS_EX_CLIENTEDGE,TOOLBARCLASSNAME,NULL,WS_CHILD|WS_V
> ISIBLE,0,0,0,0,
> hwnd,(HMENU)ID_TOOLBAR,g_hInstance,NULL);
> if(!hToolbar)
> {
> MessageBox(hwnd,"Couldn't create toolbar","Error",MB_OK);
> return 0;
> }
>
> SendMessage(hToolbar,TB_BUTTONSTRUCTSIZE,(WPARAM)sizeof(TBBUTTON),0);
>
> TBBUTTON tbb[3];
> TBADDBITMAP tbab;
>
>
>
> tbab.hInst=g_hInstance;;
> tbab.nID=ID_BITMAP;
> SendMessage(hToolbar,TB_ADDBITMAP,(WPARAM)3,(LPARAM)&tbab);
>
> ZeroMemory(tbb,sizeof(tbb));
>
> tbb[0].iBitmap=0;
> tbb[0].fsState=TBSTATE_ENABLED;
> tbb[0].fsStyle=TBSTYLE_BUTTON;
> tbb[0].idCommand=ID_FILE_NEW;
> >>>>>two more button definitions<<<<<<<
> SendMessage(hToolbar,TB_ADDBUTTONS,sizeof(tbb)/sizeof(TBBUTTON),(LPARAM)&tbb
> );
>
> ---end code----
>
> The program compiled, but when I start it, I keep getting "acces violation"
> message. I tried using a debugger, but it wont even start (or I dont know
> how to use it). When I comment out the line where I send the TB_ADDBITMAP
> button, the program works, but without images on buttons, so I suppose
> there's something wrong about that .
> Can somebody give me some advice what could be wrong, or direct me to some
> link about using Dev-Cpp debugger?
> ------------
> Vlada
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: <cg...@wo...> - 2003-04-18 15:49:54
|
Obsolete. Per Westermark wrote: >Deprecated is something still supported but no longer recommented, since >there are new constructs available. > >In this case, -fnative-struct seems to be obsolete, with the support >removed. > |
|
From: Vlada D. <dj...@im...> - 2003-04-18 12:58:00
|
Hi, everybody.
Here's another problem I'm having. I'm trying to create toolbar with my own
bitmap images, so I did the following:
1. I painted one 48x16 pixel bitmap using Paint, which should contain images
for 3 toolbar buttons
2. Defined ID for bitmap resource in header and added a line in .rc file
(ID_BITMAP BITMAP "image.bmp")
3. Finaly, I wrote a code to create toolbar.
--------begin code------
INITCOMMONCONTROLSEX icx;
icx.dwSize=sizeof(INITCOMMONCONTROLSEX);
icx.dwICC=ICC_BAR_CLASSES;
InitCommonControlsEx(&icx);
HWND hToolbar;
switch (message) /* handle the messages */
{
case WM_CREATE:
hToolbar=CreateWindowEx(WS_EX_CLIENTEDGE,TOOLBARCLASSNAME,NULL,WS_CHILD|WS_V
ISIBLE,0,0,0,0,
hwnd,(HMENU)ID_TOOLBAR,g_hInstance,NULL);
if(!hToolbar)
{
MessageBox(hwnd,"Couldn't create toolbar","Error",MB_OK);
return 0;
}
SendMessage(hToolbar,TB_BUTTONSTRUCTSIZE,(WPARAM)sizeof(TBBUTTON),0);
TBBUTTON tbb[3];
TBADDBITMAP tbab;
tbab.hInst=g_hInstance;;
tbab.nID=ID_BITMAP;
SendMessage(hToolbar,TB_ADDBITMAP,(WPARAM)3,(LPARAM)&tbab);
ZeroMemory(tbb,sizeof(tbb));
tbb[0].iBitmap=0;
tbb[0].fsState=TBSTATE_ENABLED;
tbb[0].fsStyle=TBSTYLE_BUTTON;
tbb[0].idCommand=ID_FILE_NEW;
>>>>>two more button definitions<<<<<<<
SendMessage(hToolbar,TB_ADDBUTTONS,sizeof(tbb)/sizeof(TBBUTTON),(LPARAM)&tbb
);
---end code----
The program compiled, but when I start it, I keep getting "acces violation"
message. I tried using a debugger, but it wont even start (or I dont know
how to use it). When I comment out the line where I send the TB_ADDBITMAP
button, the program works, but without images on buttons, so I suppose
there's something wrong about that .
Can somebody give me some advice what could be wrong, or direct me to some
link about using Dev-Cpp debugger?
------------
Vlada
|
|
From: <dan...@ya...> - 2003-04-17 13:03:24
|
--- "Smitha V. Babu" <smi...@so...> escreveu: > Hi, > I downloaded cygwin/xfree86, but i am not able to > start working on > XWindows.. > Can anyone help me.... Yes, the cygwin guys; try asking it on the right mailing list. Daniel K. O. _______________________________________________________________________ Yahoo! Mail O melhor e-mail gratuito da internet: 6MB de espaço, antivírus, acesso POP3, filtro contra spam. http://br.mail.yahoo.com/ |
|
From: Anders B. <And...@te...> - 2003-04-17 12:27:19
|
Yes, the pair highlighting feature does kind of work... I admit I did
not test it so carefully before complaining, but it is still, in my
opinion, not ideal the way it is now.
First of all, why do I need to press <- when it would be simpler to just
highlight the ( when I type the )? Ok, if I type ( then ) I need to use
<- to fill in the contents of the (), but if I type ( then a+b then ) I
don't.
Second, if I pass through my code with the cursor, it highlights all
pairs, and it becomes impossible to see which is which.
Third, although the highlighting immediately disappears if I type
something, it does not disappear when just passing through the code
using the cursor keys, until I select a region or it goes off screen due
to PgUp or something.
All these issues would be solved and the feature of matching pairs
improved if a simpler procedure was implemented:
Just highlight the matching {[( when the corresponding )]} is pressed
(or passed over with the cursor) and then remove the highlight
immediately once the next key is pressed, whether this next key is
alpha-numeric of navigational (arrows, home, end).
Finally, maybe one could improve the colors of the pair highlight? I use
the Borland color scheme, and the pairs display as white text on white
background... Would be nice if it is was included in the syntax color
preferences, so one to change it.
/Anders Blom
David Matthews wrote:
> That's what the current one does. If you scroll past a bracket, it
> highlights the matching one. If you type one, you press '<-' and it will
> highlight the matching one.
>
> At 07:22 PM 16/04/2003 +0200, Anders Blom wrote:
>
>>3)
>>
>>It would be REALLY useful to have pair matching of () [] {} on the fly.
>>The present "match pairs" feature is, in my humble opinion, not very
>>useful (or I don't understand how to use it, but it seems it just marks
>>pairs as I move past them with the cursor using the arrow keys).
>>
>>What is needed is a good way to check that I have as many ( as ) and so
>>on. The simplest way would be that every time a } ] or ) is typed, the
>>editor shows (prefereably by color-flashing) the corresponding ([{ for a
>>while (until another key is pressed, I guess).
>>
>>Most other coding editors (Rhide, Emacs, Winedt, fte) have this feature,
>>and I think it is virtually essential.
>>
>>/Anders Blom
|
|
From: Per W. <pw...@ia...> - 2003-04-17 12:03:48
|
Because the compiler dont looks around in your library path and picks up file at random. The only exception is that most object file formats allows the compiler to add a reference to a standard library that the linker should use. A lot of cimpilers uses that to specify that the linker should pick up the standard c library. The linker uses the library path to locate the library files that are mentioned either in your project, or that are specifically mentioned in the object files. Including a header file and calling a function from a library will not add information about a library in the object file. It will just add the name of the function. /Per W On Thu, 17 Apr 2003, Frank Wagner wrote: > Hello, > > I tried to use Ncurses libraries the headers are in the preset include > path and the libs are in the lib path set in the lib settings of the > compilor. > > Why can I only link my program when I explicitly add these library file > in the Project Options Linker Settings?? > > Greetings > > Frank > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Vlada D. <dj...@im...> - 2003-04-17 10:42:53
|
Never mind, I got it. I forgot to include <windows.h> (I didn't know it was needed for rseource files). ----- Original Message ----- From: "Vlada Djurovic" <dj...@im...> To: "'DevC++ help'" <dev...@li...> Sent: Thursday, April 17, 2003 12:10 PM Subject: [Dev-C++] resource parse error > Hi! > > This is my problem: I'm trying to create a dialog for my app, but I got > stuck in the first step. The compiler gives me the "parse error" and I can't > figure out why. It's in the line beggining with STYLE > > -----begin code------ > #include "resorource.h" > > > > IDD_DIALOG1 DIALOG DISCARDABLE 0, 0, 186, 111 > STYLE DS_MODALFRAME|WS_POPUP|WS_CAPTION|WS_SYSMENU > CAPTION "Dialog" > FONT 8, "MS Sans Serif" > BEGIN > DEFPUSHBUTTON "OK",IDOK,129,7,50,14 > PUSHBUTTON "Cancel",IDCANCEL,129,24,50,14 > LISTBOX IDC_LIST1,7,7,115,74,LBS_SORT | LBS_MULTIPLESEL | > LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP > EDITTEXT IDC_EDIT1,7,89,116,15,ES_AUTOHSCROLL,WS_EX_CLIENTEDGE > PUSHBUTTON "&Add text",IDC_BUTTON1,129,90,50,14 > END > ----end code----- > > The IDD_DIALOG, IDC_LIST1,IDC_EDIT1 and IDC_BUTTON1 are all defined in the > included header file. I'm using Dev-Cp 4.9.5.0 and Win2K. Hope somebody can > help me. Thanks! > > P.S. I used MS VC++ resource editor to create the dialog, and then I copied > the above code to my .rc file. Maybe it has something to do with this. > ------------ > Vlada > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Smitha V. B. <smi...@so...> - 2003-04-17 10:15:36
|
Hi, I downloaded cygwin/xfree86, but i am not able to start working on XWindows.. Can anyone help me.... Thanking in advance rgds smitha. ********************************************************************* Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. ********************************************************************* |
|
From: Vlada D. <dj...@im...> - 2003-04-17 10:11:03
|
Hi!
This is my problem: I'm trying to create a dialog for my app, but I got
stuck in the first step. The compiler gives me the "parse error" and I can't
figure out why. It's in the line beggining with STYLE
-----begin code------
#include "resorource.h"
IDD_DIALOG1 DIALOG DISCARDABLE 0, 0, 186, 111
STYLE DS_MODALFRAME|WS_POPUP|WS_CAPTION|WS_SYSMENU
CAPTION "Dialog"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "OK",IDOK,129,7,50,14
PUSHBUTTON "Cancel",IDCANCEL,129,24,50,14
LISTBOX IDC_LIST1,7,7,115,74,LBS_SORT | LBS_MULTIPLESEL |
LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_EDIT1,7,89,116,15,ES_AUTOHSCROLL,WS_EX_CLIENTEDGE
PUSHBUTTON "&Add text",IDC_BUTTON1,129,90,50,14
END
----end code-----
The IDD_DIALOG, IDC_LIST1,IDC_EDIT1 and IDC_BUTTON1 are all defined in the
included header file. I'm using Dev-Cp 4.9.5.0 and Win2K. Hope somebody can
help me. Thanks!
P.S. I used MS VC++ resource editor to create the dialog, and then I copied
the above code to my .rc file. Maybe it has something to do with this.
------------
Vlada
|
|
From: Frank W. <F.W...@wi...> - 2003-04-17 08:53:28
|
Hello, I tried to use Ncurses libraries the headers are in the preset include path and the libs are in the lib path set in the lib settings of the compilor. Why can I only link my program when I explicitly add these library file in the Project Options Linker Settings?? Greetings Frank |
|
From: David M. <dem...@uw...> - 2003-04-17 00:04:42
|
That's what the current one does. If you scroll past a bracket, it
highlights the matching one. If you type one, you press '<-' and it will
highlight the matching one.
At 07:22 PM 16/04/2003 +0200, Anders Blom wrote:
>3)
>
>It would be REALLY useful to have pair matching of () [] {} on the fly.
>The present "match pairs" feature is, in my humble opinion, not very
>useful (or I don't understand how to use it, but it seems it just marks
>pairs as I move past them with the cursor using the arrow keys).
>
>What is needed is a good way to check that I have as many ( as ) and so
>on. The simplest way would be that every time a } ] or ) is typed, the
>editor shows (prefereably by color-flashing) the corresponding ([{ for a
>while (until another key is pressed, I guess).
>
>Most other coding editors (Rhide, Emacs, Winedt, fte) have this feature,
>and I think it is virtually essential.
>
>/Anders Blom
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Roberto R. <rob...@ar...> - 2003-04-16 23:22:33
|
Well, just some textcolor( ); and some gotoxy( ); to fix printf´s at I/O
console.
Thanks in advance
Roberto
NonoX wrote:
>Hi,
>
>
>
>What fonctions of conio do you want to use ?
>
>
>
>
>
>
>
>
>
>-------Original Message-------
>
>
>
>From: Roberto Ricardi
>
>Date: mercredi 16 avril 2003 04:02:37
>
>To: 'Dev-C++ -Users-List'
>
>Subject: [Dev-C++] Testing "conio.c victim" c code in linux
>
>
>
>Hi all,
>
>
>
>Not just dev-cpp but ...
>
>I want to test my c code portability with linux and gcc. Im using a
>
>simple I/O interface with conio.c in dos style console windows ("conio.c
>
>victim").
>
>Please, can somebody tell me where find some examples to replace it to
>
>work in linux ???
>
>
>
>Thanks in advance
>
>
>
>Roberto
>
>
>
>
>
>
>
>
>
>-------------------------------------------------------
>
>This sf.net email is sponsored by:ThinkGeek
>
>Welcome to geek heaven.
>
>http://thinkgeek.com/sf
>
>_______________________________________________
>
>Dev-cpp-users mailing list
>
>Dev...@li...
>
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
>.
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
|
|
From: Shane P. <ge...@my...> - 2003-04-16 21:39:48
|
I would recommend that you start at the wxWindows home page: http://www.wxwindows.org I have found several good wxWindows forums in the past but I never bookmarked any of them. I have not looked since then because the documentation is quite good. I will do a search and let you know what I find. Shane _______________________________________________ No banners. No pop-ups. No kidding. Introducing My Way - http://www.myway.com |
|
From: Louis G. <lg...@ya...> - 2003-04-16 21:21:21
|
Shane: Can you list some of the "right forums" for Wx? --- Shane Plesner <ge...@my...> wrote: > > If you are looking to make plain GUI apps (no games) I would recommend > wxWindows. It has all the functionality you should need and is also > completely OO. It also is pretty popular so there is some good support > if you get on the right forums. > > Shane > > _______________________________________________ > No banners. No pop-ups. No kidding. > Introducing My Way - http://www.myway.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com |
|
From: Ioannis V. <iv...@at...> - 2003-04-16 18:01:42
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Andr? Macario Barros
> Sent: Wednesday, April 16, 2003 8:13 PM
> To: Dev-Cpp-Users
> Subject: [Dev-C++] default arguments of a function
>
>
> Please consider the following code:
>
> #include <blahlib>
> #include <iostream>
> using std::cout;
> using std::endl;
>
> int func(int a=1, int b=2, int c=3);
>
> int main()
> {
> int x=10, y=20, z=30;
>
> blah blah blah code;
>
> cout << func(x,y,z) << endl;
>
> more blah, blah, blah code;
>
> return 0;
> }
>
> int func(int a, int b, int c)
> {
> blah blah blah code;
>
> return(some int);
> }
>
> A) If I call func without arguments, that is, func(), it will
> use the three
> default arguments;
> B) If I use func(x,y), it will consider c value equal to 3;
> C) Idem for func(x), it will consider c=3 and b=2;
> Allways considering the most right side of the arguments list
> as default
> values;
>
> -->My question:
> Is there any way to express func call to say to it to use one or two
> arguments to specific
> parameter, that is, something like func(,y,z) to express that
> I want to pass
> x and y to b and c?
No the above call is not valid. With the default argument mechanism you can
omit arguments from the right of your passed arguments only. If you want to
pass y and z only, you can pass the default value of x.
If the user can't know the any default value, you can change the order of
the argument list or use a variadic function.
Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL 1: http://run.to/noicys
* Alternative URL 2: http://www.noicys.cjb.net
Anti-racism movement: http://www.positive-youthfoundation.org
Iraq Peace Pledge: http://www.peacepledge.org
|
|
From: Per W. <pw...@ia...> - 2003-04-16 17:53:22
|
Sorry, but no.
/Per W
On Wed, 16 Apr 2003, Andr=E9 Mac=E1rio Barros wrote:
> Please consider the following code:
>
> #include <blahlib>
> #include <iostream>
> using std::cout;
> using std::endl;
>
> int func(int a=3D1, int b=3D2, int c=3D3);
>
> int main()
> {
> int x=3D10, y=3D20, z=3D30;
>
> blah blah blah code;
>
> cout << func(x,y,z) << endl;
>
> more blah, blah, blah code;
>
> return 0;
> }
>
> int func(int a, int b, int c)
> {
> blah blah blah code;
>
> return(some int);
> }
>
> A) If I call func without arguments, that is, func(), it will use the thr=
ee
> default arguments;
> B) If I use func(x,y), it will consider c value equal to 3;
> C) Idem for func(x), it will consider c=3D3 and b=3D2;
> Allways considering the most right side of the arguments list as default
> values;
>
> -->My question:
> Is there any way to express func call to say to it to use one or two
> arguments to specific
> parameter, that is, something like func(,y,z) to express that I want to p=
ass
> x and y to b and c?
>
> Regards
> Andre
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Ricardo R. <ri...@un...> - 2003-04-16 17:51:49
|
In this case, perhaps you can try to build a function with a variable number of arguments: type function (type argument1,...); familiar examples of this type of functions are: printf(const char *,...) and scanf(const char *,...) Ricardo. |
|
From: Shane P. <ge...@my...> - 2003-04-16 17:26:08
|
If you are looking to make plain GUI apps (no games) I would recommend wxWindows. It has all the functionality you should need and is also completely OO. It also is pretty popular so there is some good support if you get on the right forums. Shane _______________________________________________ No banners. No pop-ups. No kidding. Introducing My Way - http://www.myway.com |