dev-cpp-users Mailing List for Dev-C++ (Page 268)
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: Maya <Esc...@ne...> - 2004-01-13 04:22:31
|
Oops sorry! The example generated by Dev-C++ gives me the same linker error. Ok, I am done now. TIA -- FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: Maya <Esc...@ne...> - 2004-01-13 04:18:12
|
Can anybody tell what I am doing wrong? Why do I get that linker error
with FLTK 2.0.x, but not with FLTK 1.4.x?
TIA
------ Main.cpp -------
#include <fltk/Window.h>
#include <fltk/Widget.h>
#include <fltk/run.h>
#include "NewAccountDlg.H"
int main (int argc, char *argv[])
{
jme::NewAccountDlg nad(300,200,"Maya");
return fltk::run();
}
------ NewAccountDlg.H -------
#ifndef NEW_ACCOUNT_DLG_H
#define NEW_ACCOUNT_DLG_H
#include <fltk/Window.h>
#include <fltk/Widget.h>
#include <fltk/run.h>
#include <string>
namespace jme{
class NewAccountDlg : public fltk::Window{
private:
public:
NewAccountDlg(int, int, const char*);
~NewAccountDlg();
}; //NewAccount
}
#endif
------ NewAccountDlg.C -------
#ifndef NEW_ACCOUNT_DLG_H
#include "NewAccountDlg.H"
#endif
jme::NewAccountDlg::NewAccountDlg(int w, int h, const char* t)
: fltk::Window( w, h, t ){
begin();
fltk::Widget* box = new fltk::Widget(10,10,w-20,h-20,"Maya");
box->box(fltk::UP_BOX);
box->labelsize(36);
box->labelfont(fltk::HELVETICA_BOLD_ITALIC);
box->labeltype(fltk::SHADOW_LABEL);
this->end();
this->show();
}
jme::NewAccountDlg::~NewAccountDlg(){}
------ Error Message -------
Compiler: Default compiler
Building Makefile: "C:\jme\lib\cpp\wimm\Makefile.win"
Executing make clean
rm -f main.o NewAccountDlg.o wimm_private.res wimm.exe
g++.exe -c main.cpp -o main.o -I"C:/DEV-CPP/include/c++"
-I"C:/DEV-CPP/include/c++/mingw32" -I"C:/DEV-CPP/include/c++/backward"
-I"C:/DEV-CPP/include"
g++.exe -c NewAccountDlg.C -o NewAccountDlg.o
-I"C:/DEV-CPP/include/c++" -I"C:/DEV-CPP/include/c++/mingw32"
-I"C:/DEV-CPP/include/c++/backward" -I"C:/DEV-CPP/include"
windres.exe -i wimm_private.rc -I rc -o wimm_private.res -O coff
g++.exe main.o NewAccountDlg.o wimm_private.res -o "wimm.exe"
-L"C:/DEV-CPP/lib" -mwindows -lfltk -lole32 -luuid -lcomctl32 -lwsock32 -lm
C:/DEV-CPP/lib/libfltk.a(fl_color.o)(.text+0x4ec):fl_color.cxx:
undefined reference to `SetDCPenColor@8'
C:/DEV-CPP/lib/libfltk.a(fl_color.o)(.text+0x526):fl_color.cxx:
undefined reference to `SetDCBrushColor@8'
make.exe: *** [wimm.exe] Error 1
Execution terminated
--
FYI
http://www.astro.umd.edu/~marshall/abbrev.html
E-Mail Policy
http://www.vif.com/users/escalante/Email_Policy.html
* You cannot exercise your power to a point of humiliation.
- Jean Chretien
* The media's the most powerful entity on earth. They have the
power to make the innocent guilty and to make the guilty
innocent, and that's power.
- Malcom X
* "Innocent until proven guilty", no... not in Canada!!
|
|
From: Suzanne <iri...@rc...> - 2004-01-13 03:29:41
|
I have a application that uses win32 MAPI to extract contact information.
When I compile I need to link it to MS Mapi 32 API.
However when I configure, I linked a free mapi 32 lib because I didn't
have microsoft compiler. If I recall correctly the syntax of casting return
value is a little different.
***************************************
rc = (*mapiaddr)(0L, 0L,
"Add to Allow List. (Press Cancel to abort, use
the Shift key to select multiple addresses.)",
1L, "Add to Allow List", 0L, NULL,
MAPI_LOGON_UI | MAPI_NEW_SESSION, 0L,
&lpnNewRecips, &lppNewRecips);
**************************************
I need to make a call to make a window show up so that one can select
addresses.
later in a loop
temp = env->NewStringUTF(lppNewRecips[i].lpszAddress);
sets the address so that java can retrive it.
Any help/direction would be wicked appreciated.
Cheers!
Suzanne
|
|
From: Maya <Esc...@ne...> - 2004-01-13 02:46:21
|
I have installed GLUI using the package manager, but when I tried to complied the sample application Dev-C++ generates I get a whole lot of errors, can anyone help? Thanks in advance!! ============== Compiler: Default compiler Building Makefile: "C:\tmp\Makefile.win" Executing make... make.exe -f "C:\tmp\Makefile.win" all g++.exe -c main.cpp -o main.o -I"C:/DEV-CPP/include/c++" -I"C:/DEV-CPP/include/c++/mingw32" -I"C:/DEV-CPP/include/c++/backward" -I"C:/DEV-CPP/include" In file included from main.cpp:15: C:/DEV-CPP/include/GL/glui.h:31:21: GL/glut.h: No such file or directory In file included from main.cpp:15: C:/DEV-CPP/include/GL/glui.h: In member function `void GLUI_Master_Object::set_glutDisplayFunc(void (*)())': C:/DEV-CPP/include/GL/glui.h:438: `glutDisplayFunc' undeclared (first use this function) C:/DEV-CPP/include/GL/glui.h:438: (Each undeclared identifier is reported only once for each function it appears in.) C:/DEV-CPP/include/GL/glui.h: In member function `void GLUI_Master_Object::set_glutTimerFunc(unsigned int, void (*)(int), int)': C:/DEV-CPP/include/GL/glui.h:440: `::glutTimerFunc' undeclared (first use here) C:/DEV-CPP/include/GL/glui.h: In member function `void GLUI_Master_Object::set_glutOverlayDisplayFunc(void (*)())': C:/DEV-CPP/include/GL/glui.h:441: `glutOverlayDisplayFunc' undeclared (first use this function) C:/DEV-CPP/include/GL/glui.h: In member function `void GLUI_Master_Object::set_glutSpaceballMotionFunc(void (*)(int, int, int))': C:/DEV-CPP/include/GL/glui.h:442: `glutSpaceballMotionFunc' undeclared (first use this function) C:/DEV-CPP/include/GL/glui.h: In member function `void GLUI_Master_Object::set_glutSpaceballRotateFunc(void (*)(int, int, int))': C:/DEV-CPP/include/GL/glui.h:443: `glutSpaceballRotateFunc' undeclared (first use this function) C:/DEV-CPP/include/GL/glui.h: In member function `void GLUI_Master_Object::set_glutSpaceballButtonFunc(void (*)(int, int))': C:/DEV-CPP/include/GL/glui.h:444: `glutSpaceballButtonFunc' undeclared (first use this function) C:/DEV-CPP/include/GL/glui.h: In member function `void GLUI_Master_Object::set_glutTabletMotionFunc(void (*)(int, int))': C:/DEV-CPP/include/GL/glui.h:445: `glutTabletMotionFunc' undeclared (first use this function) C:/DEV-CPP/include/GL/glui.h: In member function `void GLUI_Master_Object::set_glutTabletButtonFunc(void (*)(int, int, int, int))': C:/DEV-CPP/include/GL/glui.h:446: `glutTabletButtonFunc' undeclared (first use this function) C:/DEV-CPP/include/GL/glui.h: In member function `void GLUI_Master_Object::set_glutMenuStatusFunc(void (*)(int, int, int))': C:/DEV-CPP/include/GL/glui.h:448: `glutMenuStatusFunc' undeclared (first use this function) C:/DEV-CPP/include/GL/glui.h: In member function `void GLUI_Master_Object::set_glutMenuStateFunc(void (*)(int))': C:/DEV-CPP/include/GL/glui.h:449: `glutMenuStateFunc' undeclared (first use this function) C:/DEV-CPP/include/GL/glui.h: In member function `void GLUI_Master_Object::set_glutButtonBoxFunc(void (*)(int, int))': C:/DEV-CPP/include/GL/glui.h:450: `glutButtonBoxFunc' undeclared (first use this function) C:/DEV-CPP/include/GL/glui.h: In member function `void GLUI_Master_Object::set_glutDialsFunc(void (*)(int, int))': C:/DEV-CPP/include/GL/glui.h:451: `glutDialsFunc' undeclared (first use this function) C:/DEV-CPP/include/GL/glui.h: In member function `void GLUI_Control::translate_to_origin()': C:/DEV-CPP/include/GL/glui.h:705: `glTranslatef' undeclared (first use this function) C:/DEV-CPP/include/GL/glui.h: At global scope: C:/DEV-CPP/include/GL/glui.h:1501: syntax error before `*' token C:/DEV-CPP/include/GL/glui.h:1549: syntax error before `*' token C:/DEV-CPP/include/GL/glui.h: In constructor `GLUI_Translation::GLUI_Translation()': C:/DEV-CPP/include/GL/glui.h:1603: `quadObj' undeclared (first use this function) main.cpp:16:21: GL/glut.h: No such file or directory main.cpp: In function `void myGlutIdle()': main.cpp:31: `glutGetWindow' undeclared (first use this function) main.cpp:32: `glutSetWindow' undeclared (first use this function) main.cpp:34: `glutPostRedisplay' undeclared (first use this function) main.cpp: In function `void myGlutReshape(int, int)': main.cpp:45: `glViewport' undeclared (first use this function) main.cpp:47: `GL_PROJECTION' undeclared (first use this function) main.cpp:47: `glMatrixMode' undeclared (first use this function) main.cpp:48: `glLoadIdentity' undeclared (first use this function) main.cpp:49: `glFrustum' undeclared (first use this function) main.cpp: In function `void myGlutDisplay()': main.cpp:60: `glClearColor' undeclared (first use this function) main.cpp:61: `GL_COLOR_BUFFER_BIT' undeclared (first use this function) main.cpp:61: `GL_DEPTH_BUFFER_BIT' undeclared (first use this function) main.cpp:61: `glClear' undeclared (first use this function) main.cpp:67: `GL_MODELVIEW' undeclared (first use this function) main.cpp:70: `glRotatef' undeclared (first use this function) main.cpp:78: `glutWireTorus' undeclared (first use this function) main.cpp:80: `glutSolidTorus' undeclared (first use this function) main.cpp:82: `glutSwapBuffers' undeclared (first use this function) main.cpp: In function `int main(int, char**)': main.cpp:94: `GLUT_RGB' undeclared (first use this function) main.cpp:94: `GLUT_DOUBLE' undeclared (first use this function) main.cpp:94: `GLUT_DEPTH' undeclared (first use this function) main.cpp:94: `glutInitDisplayMode' undeclared (first use this function) main.cpp:95: `glutInitWindowPosition' undeclared (first use this function) main.cpp:96: `glutInitWindowSize' undeclared (first use this function) main.cpp:98: `glutCreateWindow' undeclared (first use this function) main.cpp:100: `glutReshapeFunc' undeclared (first use this function) main.cpp:106: `GLfloat' undeclared (first use this function) main.cpp:106: parse error before `[' token main.cpp: At global scope: main.cpp:107: parse error before `[' token main.cpp:108: parse error before `[' token main.cpp:110: `GL_LIGHTING' was not declared in this scope main.cpp:110: ISO C++ forbids declaration of `glEnable' with no type main.cpp:111: `GL_LIGHT0' was not declared in this scope main.cpp:111: ISO C++ forbids declaration of `glEnable' with no type main.cpp:111: redefinition of `int glEnable' main.cpp:110: `int glEnable' previously defined here main.cpp:112: `GL_LIGHT0' was not declared in this scope main.cpp:112: `GL_AMBIENT' was not declared in this scope main.cpp:112: `light0_ambient' was not declared in this scope main.cpp:112: ISO C++ forbids declaration of `glLightfv' with no type main.cpp:112: initializer list being treated as compound expression main.cpp:113: `GL_LIGHT0' was not declared in this scope main.cpp:113: `GL_DIFFUSE' was not declared in this scope main.cpp:113: `light0_diffuse' was not declared in this scope main.cpp:113: ISO C++ forbids declaration of `glLightfv' with no type main.cpp:113: redefinition of `int glLightfv' main.cpp:112: `int glLightfv' previously defined here main.cpp:113: initializer list being treated as compound expression main.cpp:114: `GL_LIGHT0' was not declared in this scope main.cpp:114: `GL_POSITION' was not declared in this scope main.cpp:114: `light0_position' was not declared in this scope main.cpp:114: ISO C++ forbids declaration of `glLightfv' with no type main.cpp:114: redefinition of `int glLightfv' main.cpp:113: `int glLightfv' previously defined here main.cpp:114: initializer list being treated as compound expression main.cpp:120: `GL_DEPTH_TEST' was not declared in this scope main.cpp:120: ISO C++ forbids declaration of `glEnable' with no type main.cpp:120: redefinition of `int glEnable' main.cpp:111: `int glEnable' previously defined here main.cpp:128: syntax error before `->' token main.cpp:131: syntax error before `->' token main.cpp:133: syntax error before `->' token main.cpp:136: syntax error before `.' token main.cpp:138: ISO C++ forbids declaration of `glutMainLoop' with no type main.cpp:139: parse error before `}' token make.exe: *** [main.o] Error 1 Execution terminated -- FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: Daniel G. <sp...@ho...> - 2004-01-12 18:13:09
|
Learn about the Windows Message loops and in there you can use a switch - case statement. This is a little crude - DirectInput (part of the DirectX library) is used a lot these days. >From: "Cyril Dupuit" <cyr...@ho...> >To: dev...@li... >Subject: [Dev-C++] Help me please ! >Date: Mon, 12 Jan 2004 18:15:45 +0100 > >Hello, > >I developed a small "driver" for a game pad connected to LPT1 under DOS. >This driver functions very well and it appeared extremely interesting to me >to develop this driver under Windows, which will enable me to play with >different games. My question is as follows: " How will I be able to create >a driver for a game pad connected to LPT1 with Dev-C++? ". > >If you have addresses or, examples of codes, could you send me at : >cyr...@ho.... > >Thank you. Cyril. > >_________________________________________________________________ >MSN Messenger http://g.msn.fr/FR1001/866 : dialoguez en direct et >gratuitement avec vos amis ! > > > >------------------------------------------------------- >This SF.net email is sponsored by: Perforce Software. >Perforce is the Fast Software Configuration Management System offering >advanced branching capabilities and atomic changes on 50+ platforms. >Free Eval! http://www.perforce.com/perforce/loadprog.html >_______________________________________________ >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 _________________________________________________________________ Find a cheaper internet access deal - choose one to suit you. http://www.msn.co.uk/internetaccess |
|
From: Cyril D. <cyr...@ho...> - 2004-01-12 17:15:54
|
Hello, I developed a small "driver" for a game pad connected to LPT1 under DOS. This driver functions very well and it appeared extremely interesting to me to develop this driver under Windows, which will enable me to play with different games. My question is as follows: " How will I be able to create a driver for a game pad connected to LPT1 with Dev-C++? ". If you have addresses or, examples of codes, could you send me at : cyr...@ho.... Thank you. Cyril. _________________________________________________________________ MSN Messenger http://g.msn.fr/FR1001/866 : dialoguez en direct et gratuitement avec vos amis ! |
|
From: Matt <mm...@ma...> - 2004-01-12 16:07:10
|
On Jan 12, 2004, at 8:11 AM, Maya wrote:
> jme::NewAccountDlg::NewAccountDlg()(int w, int h, const char* t)
> : Fl_Double_Window( w, h, t ){
^^ this line creates a double window and keeps it active for the
following widgets to be created until you call end
> Fl_Window* window = new Fl_Window (10,10,300, 180);
^^ This line creates a subwindow in the above window
> window->show ();
^^ This line show the window inside the double window. But unless
you show the double window, nothing will appear in the screen
> window->end ();
> }
>
So either you write this to create a window in a window
> jme::NewAccountDlg::NewAccountDlg()(int w, int h, const char* t)
> : Fl_Double_Window( w, h, t ){
> Fl_Window* window = new Fl_Window (10,10,300, 180);
> window->show ();
> window->end ();
end(); show();
> }
Or this to create two seperate windows
> jme::NewAccountDlg::NewAccountDlg()(int w, int h, const char* t)
> : Fl_Double_Window( w, h, t ){
end(); show();
> Fl_Window* window = new Fl_Window (10,10,300, 180);
> window->show ();
> window->end ();
> }
Or this to create one simple window:
> jme::NewAccountDlg::NewAccountDlg()(int w, int h, const char* t)
> : Fl_Double_Window( w, h, t ){
end();
show();
> }
|
|
From: Maya <Esc...@ne...> - 2004-01-12 13:03:02
|
I have been looking for in '..../doc/fltk-1.1.4/index.html/ for an
example that might help me resolve this problem.
If all the GUI operations are within a class, how would the main.cpp
look like. The code below does not work!!
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
#include "NewAccountDlg.H"
int main (int argc, char *argv[])
{
jme::NewAccountDlg nad(100,100, "Maya");
return Fl::run();
}
---------------------
#ifndef NEW_ACCOUNT_DLG_H
#define NEW_ACCOUNT_DLG_H
#include <FL/Fl_Window.H>
#include <FL/Fl_Double_Window.H>
#include <string>
namespace jme{
class NewAccountDlg : public Fl_Double_Window{
private:
public:
NewAccountDlg((int, int, const char*));
~NewAccountDlg();
}; //NewAccount
}
#endif
--------------------------------------------------
#ifndef NEW_ACCOUNT_DLG_H
#include "NewAccountDlg.H"
#endif
jme::NewAccountDlg::NewAccountDlg()(int w, int h, const char* t)
: Fl_Double_Window( w, h, t ){
Fl_Window* window = new Fl_Window (10,10,300, 180);
window->show ();
window->end ();
}
jme::NewAccountDlg::~NewAccountDlg(){}
--
FYI
http://www.astro.umd.edu/~marshall/abbrev.html
E-Mail Policy
http://www.vif.com/users/escalante/Email_Policy.html
* You cannot exercise your power to a point of humiliation.
- Jean Chretien
* The media's the most powerful entity on earth. They have the
power to make the innocent guilty and to make the guilty
innocent, and that's power.
- Malcom X
|
|
From: Ed C. <em...@ed...> - 2004-01-12 04:43:36
|
Hi David (and Reid), I should be more careful with my wording; the "server" side is actually = a database server. This is really a database app. Now, I CAN install a script/app on the primary or secondary server (there are several), but = what I really need to do is find some way to secure the database passwords themselves. I'm not sure of a good method for doing this, as the client has to have = the plaintext passwords to make the connections to the databases. I could require the user to provide some sort of username and password, of = course, but part of the purpose of this program is data-warehousing, meaning = moving very large amounts of data between machines; so, I'd like to be able to = run it (the update/transfer portion, at least) in off-peak hours, = automatically. I'm kind of stuck: the client app has to know how to connect, somehow, = but I also need to run the app on off-peak hours, without user input. So, this is really my question: is there any combination of algorithm = and key/salt data which would make it unreasonably difficult to discover the database connection info, or is that a pipe dream? If not, would = installing the update portion as a (automatic/scheduled) server application and the data mining part on client machines (requiring a username and password = to logon) be acceptably secure? What are the pros and cons of this idea? I should also mention that one of the database systems I have to work = with is an old Visual FoxPro system - no, changing that part is not an option = - and working with it requires that the clients be on the same LAN as the server holding the Visual FoxPro files, since FoxPro is not really a = server. This LAN is not accessible from outside; security on this project is = already a nightmare. Anyone still reading? -Ed =20 -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of David = McKen Sent: Sunday, January 11, 2004 9:35 PM To: Dev-C Mailing List Subject: Re: [Dev-C++] Simple encryption/obfuscation By definition of your problem anyone who know your algorithm is going to be able to decrypt the file. Essentially a hacker has all the info they need if they get their hands on the algorithm and the file that has both the e-mail and the encrypted data.=20 Including a bit of randomness is not going to be easy to do as you have to somehow rember that random value for you to decrypt it every time.=20 Possibly hide the encrypted data in a file with some other data. And maybe store the e-mail seperate from the encrypted data. Make it harder for a hacker to get the data they want, this assumes that a potential hacker already knows the algorithm. Hope This Helps David McKen --- Ed Cottrell <em...@to...> wrote: > Hello all, >=20 > I need help on an algorithm. I need to accept username/password > combinations > on the client side of a client-server app, store those on the > client side, > and "decrypt" them again without user input, using only the stored > strings. > Think the "remember my password" function in MS Outlook, IE, etc. >=20 > Ideally, I would like to do this: > On first run: > 1) Accept email address > 2) Accept username & password pairs > 3) "Encrypt" username/password pairs with email address + some > machine-dependent data as a key > 4) Write these encrypted pairs and the email address to a text file >=20 > On future runs: > 1) Read the encrypted pairs > 2) "Decrypt" them > 3) Do stuff. >=20 > The best idea I have now is some block-and-bit chunking and > shifting - break > the string to encrypt into variable-length chunks, shuffle, > reassemble, bit > rotate, repeat. The "decrypt" would simply reverse the process. My > concern > is that anybody who knows the algorithm will be able to reverse it > quite > easily, given access to the text file. >=20 > Any help is appreciated! >=20 > -Ed >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System > offering > advanced branching capabilities and atomic changes on 50+ > platforms. > Free Eval! http://www.perforce.com/perforce/loadprog.html > _______________________________________________ > 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 =3D=3D=3D=3D=3D Signed=20 David Mcken Life Sucks Live with it __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ 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: David M. <ci...@ya...> - 2004-01-12 03:13:32
|
Does he have control of the server side? --- Reid Thompson <rei...@at...> wrote: > Use a key -- implement the key in the server side code. > If "remember my password" is checked on connection to server, > generate the file data to be stored on the client side on the > server and > fave the server return the file data to the client, which writes it > to > the client host filesystem. Then, decryption/validation occurs on > the > server side on attempted connections and the server binary is the > only > place that the key can be found. > > David McKen wrote: > > By definition of your problem anyone who know your algorithm is > going > > to be able to decrypt the file. Essentially a hacker has all the > info > > they need if they get their hands on the algorithm and the file > that > > has both the e-mail and the encrypted data. > > > > Including a bit of randomness is not going to be easy to do as > you > > have to somehow rember that random value for you to decrypt it > every > > time. > > > > Possibly hide the encrypted data in a file with some other data. > And > > maybe store the e-mail seperate from the encrypted data. Make it > > harder for a hacker to get the data they want, this assumes that > a > > potential hacker already knows the algorithm. > > > > Hope This Helps > > David McKen > > > > --- Ed Cottrell <em...@to...> wrote: > > > Hello all, > > > > > > I need help on an algorithm. I need to accept > username/password > > > combinations > > > on the client side of a client-server app, store those on the > > > client side, > > > and "decrypt" them again without user input, using only the > stored > > > strings. > > > Think the "remember my password" function in MS Outlook, IE, > etc. > > > > > > Ideally, I would like to do this: > > > On first run: > > > 1) Accept email address > > > 2) Accept username & password pairs > > > 3) "Encrypt" username/password pairs with email address + some > > > machine-dependent data as a key > > > 4) Write these encrypted pairs and the email address to a text > file > > > > > > On future runs: > > > 1) Read the encrypted pairs > > > 2) "Decrypt" them > > > 3) Do stuff. > > > > > > The best idea I have now is some block-and-bit chunking and > > > shifting - break > > > the string to encrypt into variable-length chunks, shuffle, > > > reassemble, bit > > > rotate, repeat. The "decrypt" would simply reverse the > process. My > > > concern > > > is that anybody who knows the algorithm will be able to > reverse it > > > quite > > > easily, given access to the text file. > > > > > > Any help is appreciated! > > > > > > -Ed __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus |
|
From: David M. <ci...@ya...> - 2004-01-12 02:34:42
|
By definition of your problem anyone who know your algorithm is going to be able to decrypt the file. Essentially a hacker has all the info they need if they get their hands on the algorithm and the file that has both the e-mail and the encrypted data. Including a bit of randomness is not going to be easy to do as you have to somehow rember that random value for you to decrypt it every time. Possibly hide the encrypted data in a file with some other data. And maybe store the e-mail seperate from the encrypted data. Make it harder for a hacker to get the data they want, this assumes that a potential hacker already knows the algorithm. Hope This Helps David McKen --- Ed Cottrell <em...@to...> wrote: > Hello all, > > I need help on an algorithm. I need to accept username/password > combinations > on the client side of a client-server app, store those on the > client side, > and "decrypt" them again without user input, using only the stored > strings. > Think the "remember my password" function in MS Outlook, IE, etc. > > Ideally, I would like to do this: > On first run: > 1) Accept email address > 2) Accept username & password pairs > 3) "Encrypt" username/password pairs with email address + some > machine-dependent data as a key > 4) Write these encrypted pairs and the email address to a text file > > On future runs: > 1) Read the encrypted pairs > 2) "Decrypt" them > 3) Do stuff. > > The best idea I have now is some block-and-bit chunking and > shifting - break > the string to encrypt into variable-length chunks, shuffle, > reassemble, bit > rotate, repeat. The "decrypt" would simply reverse the process. My > concern > is that anybody who knows the algorithm will be able to reverse it > quite > easily, given access to the text file. > > Any help is appreciated! > > -Ed > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System > offering > advanced branching capabilities and atomic changes on 50+ > platforms. > Free Eval! http://www.perforce.com/perforce/loadprog.html > _______________________________________________ > 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 ===== Signed David Mcken Life Sucks Live with it __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus |
|
From: Michal M. <mol...@se...> - 2004-01-12 00:28:19
|
belvale loic wrote: > When I begin programming with TCLITE, there was a library containing > easy to use graphic functions and named graphics.h. Does such a > library exists for Dev-C++ ? use WebUpdate to get CLGDI DevPak |
|
From: belvale l. <wi...@al...> - 2004-01-12 00:11:20
|
When I begin programming with TCLITE, there was a library containing easy to use graphic functions and named graphics.h. Does such a library exists for Dev-C++ ? Thanks in advance La meme en Francais : existe-t-il pour Dev-C++ un equivalent de la librairie graphics.h du C pour la programmation graphique ? Merci d'avance --------------------------------------------- Alinto wishes you a happy new year 2004 http://www.alinto.com |
|
From: Ed C. <em...@to...> - 2004-01-11 23:49:56
|
Hello all, I need help on an algorithm. I need to accept username/password = combinations on the client side of a client-server app, store those on the client = side, and "decrypt" them again without user input, using only the stored = strings. Think the "remember my password" function in MS Outlook, IE, etc. Ideally, I would like to do this: On first run: 1) Accept email address 2) Accept username & password pairs 3) "Encrypt" username/password pairs with email address + some machine-dependent data as a key 4) Write these encrypted pairs and the email address to a text file On future runs: 1) Read the encrypted pairs 2) "Decrypt" them 3) Do stuff. The best idea I have now is some block-and-bit chunking and shifting - = break the string to encrypt into variable-length chunks, shuffle, reassemble, = bit rotate, repeat. The "decrypt" would simply reverse the process. My = concern is that anybody who knows the algorithm will be able to reverse it quite easily, given access to the text file. Any help is appreciated! -Ed |
|
From: Markku P. <mar...@ko...> - 2004-01-11 23:41:31
|
----- Original Message -----=20 From: "David McKen" <ci...@ya...> To: "Dev-C Mailing List" <dev...@li...> Sent: Sunday, January 11, 2004 3:33 AM Subject: Re: [Dev-C++] News from devpaks repository > From reading the docs on TAO it seems that TAO is to inertwined with > ACE to build separately. Maybe a ACE only build and a ACE+TAO build? At least with bcc55 ACE can build separately and TAO+ACE together. >=20 > To keep things small for the users I was only going to put the > $ACE_ROOT/ace directory as all the include files are in that > directory as well as all the libraries. I am considering also > including the exaples directory to get users off and running. How about ACEXML? Thats a separated package. =20 ( I have been made plans to copy just libs out of $(ACE_ROOT)/ace and $(ACE_ROOT)/TAO directories. There is ace-install script that can do it, = I have to modified it so that its possible to copy only ace/tao libs and = dropout man/include/source files. ) >=20 > If you want the tests/apps/services/etc. you probably are better off > downloading and building it yourself. You could probably build the > test using the library from the dev-pak. Question is what do I > include what do I not include? Thats OK.=20 How about ACE+ACEXML, libraries in Dev-Cpp/lib and other files in = Dev-Cpp/ACE_wrappers/ace? And perhaps some Dev-Cpp Templates modified from tests?=20 -Mp : |
|
From: Maya <Esc...@ne...> - 2004-01-11 23:19:17
|
Hey Jean!! About 2 || 3 months ago someone asked the very same question, I had the information handy and replied with it. Unfortunately, that information is no longer at hand, but if you need it right away, you can always google it. Have good on. BTW, what were you chosen for [elegido] :-) jua...@ya... wrote: > hello, > i want to know how can i configure devc++ to use it with cygwin. the > idea is that i want to replace mingw with cygwin, due to a special > source code that compiles with cygwin only. if you know of some howto, > docs, or the like, please notify me. > > thx in advance > > juan > > > ------------------------------------------------------------------------ > <http://ar.rd.yahoo.com/mail/welcome/*http://ar.autos.yahoo.com> > ¿Buscás un auto? > Encontralo en Yahoo! Autos > <http://ar.rd.yahoo.com/mail/welcome/*http://ar.autos.yahoo.com> > ¡Más de 4000 clasificados todos los días! > Usados > <http://ar.rd.yahoo.com/mail/welcome/*http://yahoo.deautos.com/usados> > - 0 km > <http://ar.rd.yahoo.com/mail/welcome/*http://yahoo.deautos.com/ofertas> > - Vendé el tuyo > <http://ar.rd.yahoo.com/mail/welcome/*http://ar.autos.yahoo.com/vender/> -- FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: <jua...@ya...> - 2004-01-11 20:32:23
|
hello, i want to know how can i configure devc++ to use it with cygwin. the idea is that i want to replace mingw with cygwin, due to a special source code that compiles with cygwin only. if you know of some howto, docs, or the like, please notify me. thx in advance juan --------------------------------- ¿Buscás un auto? Encontralo en Yahoo! Autos ¡Más de 4000 clasificados todos los días! Usados - 0 km - Vendé el tuyo |
|
From: Per W. <pw...@ia...> - 2004-01-11 14:56:42
|
If the program will only export a single algorithm() function, there are no need to bother with changing names of all internal variables and functions. It is - as I said in an earlier mail - enought to declare them static. These symbols will then be hidden from the linker - no symbol names to be found in the object - or library - file. It is enough to make sure the object file is built without debugging information and that it is stripped. Anyway - are you sure that your algorithm are really so revolutionary that you need to take the time to protect it? There are really a huge set of available algorithms for performing routing, flow optimizations etc. The biggest trick is to decide which algorithm to use. Then a large set of these algorithms are available with free source code. What I'm trying to say is that in most cases, it costs more to try and protect code than what is to be gained. Unless really drastic measures are taken, a competent hacker will most probably walk through your algorithm in a very limited time. The question is: does he/she have a reason to? /Per W On Sun, 11 Jan 2004, OROSZI Bal=E1zs wrote: > Jean-Marc Godart wrote: > > I thank you all for your advice/comments. > > > > You are right about my intents, Haakon. I am marketing a kinda complex > > "mathematical" algorithm for planning trips/tours. Since this algorithm= has > > to be interfaced by customers, once compiled, I want the source code of= the > > algorithm to be "hidden" (as far as the customers don't try to do > > decompilation or reverse engineering). I definitely do not want custome= rs to > > see what the algorithm does but also not the names of "private" > > functions/variables, except for the main function (called "algorithm()"= ) and > > its parameters, of course. > > > > Any additional advice/reference on this topic ? Also, if you have > > ideas/references about how I can make decompilation and reverse enginee= ring > > more difficult, I would be very pleased to know them. > > Well, this is theoretically impossible. Nearly everything can be > cracked/reverse engineered nowadays. > > However, you may try writing a small program that scans all of your > source code, and then renames everything inside: variable, function > names, except what you specify not to rename. Then you compile that. > That way, you won't get lost in your sources, as you develop the > "readable" version, but compile the "renamed" one. > That may help some, though you will have to write a new program, the > code parser/renamer. > > -- > Greetings, > Bal=E1zs > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System offering > advanced branching capabilities and atomic changes on 50+ platforms. > Free Eval! http://www.perforce.com/perforce/loadprog.html > _______________________________________________ > 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: <or...@vp...> - 2004-01-11 14:41:10
|
Jean-Marc Godart wrote: > I thank you all for your advice/comments. > > You are right about my intents, Haakon. I am marketing a kinda complex > "mathematical" algorithm for planning trips/tours. Since this algorithm has > to be interfaced by customers, once compiled, I want the source code of the > algorithm to be "hidden" (as far as the customers don't try to do > decompilation or reverse engineering). I definitely do not want customers to > see what the algorithm does but also not the names of "private" > functions/variables, except for the main function (called "algorithm()") and > its parameters, of course. > > Any additional advice/reference on this topic ? Also, if you have > ideas/references about how I can make decompilation and reverse engineering > more difficult, I would be very pleased to know them. Well, this is theoretically impossible. Nearly everything can be cracked/reverse engineered nowadays. However, you may try writing a small program that scans all of your source code, and then renames everything inside: variable, function names, except what you specify not to rename. Then you compile that. That way, you won't get lost in your sources, as you develop the "readable" version, but compile the "renamed" one. That may help some, though you will have to write a new program, the code parser/renamer. -- Greetings, Balázs |
|
From: Jean-Marc G. <go...@sk...> - 2004-01-11 14:29:11
|
I thank you all for your advice/comments.
You are right about my intents, Haakon. I am marketing a kinda complex
"mathematical" algorithm for planning trips/tours. Since this algorithm has
to be interfaced by customers, once compiled, I want the source code of the
algorithm to be "hidden" (as far as the customers don't try to do
decompilation or reverse engineering). I definitely do not want customers to
see what the algorithm does but also not the names of "private"
functions/variables, except for the main function (called "algorithm()") and
its parameters, of course.
Any additional advice/reference on this topic ? Also, if you have
ideas/references about how I can make decompilation and reverse engineering
more difficult, I would be very pleased to know them.
Again and by advance, thank you.
Best regards,
Jean-Marc
----- Original Message -----
From: "Haakon M. Eriksen" <ha...@nh...>
To: "Per Westermark" <pw...@ia...>; "Jean-Marc Godart"
<go...@sk...>
Cc: <dev...@li...>; "Ferdinando Formica"
<s2...@st...>
Sent: Sunday, January 11, 2004 1:50 PM
Subject: RE: [Dev-C++] Split code in public/private parts - Help please
> I think Jean-Marc is asking about something else - code obfuscation.
> There are several references about wanting to hide what the source code
> does. Why do you want this, Jean-Marc?
>
>
> Yours sincerely,
>
>
>
> Haakon Meland Eriksen
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Perforce Software.
> Perforce is the Fast Software Configuration Management System offering
> advanced branching capabilities and atomic changes on 50+ platforms.
> Free Eval! http://www.perforce.com/perforce/loadprog.html
> _______________________________________________
> 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: Haakon M. E. <ha...@nh...> - 2004-01-11 12:51:04
|
I think Jean-Marc is asking about something else - code obfuscation. There are several references about wanting to hide what the source code does. Why do you want this, Jean-Marc? Yours sincerely, Haakon Meland Eriksen |
|
From: Per W. <pw...@ia...> - 2004-01-11 11:41:12
|
A library is a collection of multiple object files. There are a lot of
good references out there.
If any other object file must call your functions, you might do
/* private_include_file.h */
#define eval_area get_lost_1
#define solve_root get_lost_2
...
and then your code will be
#include "private_include_file.h"
void my_callable_function(void) {
...
if (eval_area(1,2,3) > 0) {
solve_root(4,5,6);
}
}
If your variables and functions doesn't need to be accessed from the
outside, it is enough to declare them static, i.e.:
/* my_private_file.c */
static int private_variable_1;
static float private_variable_2;
char public_version[] = "My callable module version 1.02.01";
static int eval_area(int a,int b,int c) {
....
return a+b+c;
}
void my_callable_function(void) {
...
if (eval-area(1,2,3) > 0) {
solve_root(4,5,6);
}
}
/Per W
On Sun, 11 Jan 2004, Jean-Marc Godart wrote:
> Thanks a lot for your very adequate answer, Ferdinando.
>
> I have two extra questions, based on your answer ... Sorry it is a little
> off-topic now since it is more like a general C question.
>
> (1) What is the difference between a ".o" file and a ".lib" file (library)
> and how can I convert one in the other ?
>
> (2) I understand it is not possible to prevent someone from calling all of
> the functions in the ".o" file. Yet, I just noticed the names of all my
> variables and functions appear "in clear" in the code of the ".o" file (when
> opening it with a text processor). Is there a way to avoid this (as the
> names are explicit and give hints about the way the program works) ? Of
> course, I can just give names as "a", "b", "c"... but then I get lost in my
> source code. I tried to use "static" but it does not change a thing ...
>
> Any help is welcome !
>
> Thanks again,
>
> Jean-Marc
>
> ----- Original Message -----
> From: "Ferdinando Formica" <s2...@st...>
> To: <go...@sk...>
> Cc: "Dev-C++ Mailing List" <dev...@li...>
> Sent: Saturday, January 10, 2004 7:51 PM
> Subject: Re: [Dev-C++] Split code in public/private parts - Help please
>
>
> >
> > > How can I compile "part two" (which has no "main" function),
> > > so that the source code cannot be seen anymore ?
> >
> > You can put "part two" in a separate file, and compile it singularly, then
> > distribute the output file (with .o extension).
> >
> > > Then, how can I compile "part one" source code (which has
> > > the "main" function) with "part two" compiled version?
> >
> > You have to include in your project the .o file selecting "include in
> > link" and deselecting "include in compilation", or equivalently build a
> > library from it (a .a file), call it e.g. libp2.a, and specify "-lp2" in
> > linker options.
> >
> > > How can I make sure it is not possible
> > > to call directly another function of "part two" ?
> >
> > _Really_ you can't, but only who knows the implementation (or is a good
> > and patient reverse engineer) know what's inside an object file. You
> > should put declarations for all functions you would like a programmer to
> > call in a header (.h) and distribute it with your .o or .a file.
> >
> > Bye, Ferdinando.
> >
> >
> >
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Perforce Software.
> Perforce is the Fast Software Configuration Management System offering
> advanced branching capabilities and atomic changes on 50+ platforms.
> Free Eval! http://www.perforce.com/perforce/loadprog.html
> _______________________________________________
> 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: Jean-Marc G. <go...@sk...> - 2004-01-11 11:07:18
|
Thanks a lot for your very adequate answer, Ferdinando.
I have two extra questions, based on your answer ... Sorry it is a little
off-topic now since it is more like a general C question.
(1) What is the difference between a ".o" file and a ".lib" file (library)
and how can I convert one in the other ?
(2) I understand it is not possible to prevent someone from calling all of
the functions in the ".o" file. Yet, I just noticed the names of all my
variables and functions appear "in clear" in the code of the ".o" file (when
opening it with a text processor). Is there a way to avoid this (as the
names are explicit and give hints about the way the program works) ? Of
course, I can just give names as "a", "b", "c"... but then I get lost in my
source code. I tried to use "static" but it does not change a thing ...
Any help is welcome !
Thanks again,
Jean-Marc
----- Original Message -----
From: "Ferdinando Formica" <s2...@st...>
To: <go...@sk...>
Cc: "Dev-C++ Mailing List" <dev...@li...>
Sent: Saturday, January 10, 2004 7:51 PM
Subject: Re: [Dev-C++] Split code in public/private parts - Help please
>
> > How can I compile "part two" (which has no "main" function),
> > so that the source code cannot be seen anymore ?
>
> You can put "part two" in a separate file, and compile it singularly, then
> distribute the output file (with .o extension).
>
> > Then, how can I compile "part one" source code (which has
> > the "main" function) with "part two" compiled version?
>
> You have to include in your project the .o file selecting "include in
> link" and deselecting "include in compilation", or equivalently build a
> library from it (a .a file), call it e.g. libp2.a, and specify "-lp2" in
> linker options.
>
> > How can I make sure it is not possible
> > to call directly another function of "part two" ?
>
> _Really_ you can't, but only who knows the implementation (or is a good
> and patient reverse engineer) know what's inside an object file. You
> should put declarations for all functions you would like a programmer to
> call in a header (.h) and distribute it with your .o or .a file.
>
> Bye, Ferdinando.
>
>
>
|
|
From: David M. <ci...@ya...> - 2004-01-11 01:33:14
|
From reading the docs on TAO it seems that TAO is to inertwined with ACE to build separately. Maybe a ACE only build and a ACE+TAO build? To keep things small for the users I was only going to put the $ACE_ROOT/ace directory as all the include files are in that directory as well as all the libraries. I am considering also including the exaples directory to get users off and running. If you want the tests/apps/services/etc. you probably are better off downloading and building it yourself. You could probably build the test using the library from the dev-pak. Question is what do I include what do I not include? --- Markku Puro <mar...@ko...> wrote: > ----- Original Message ----- > From: "David McKen" <ci...@ya...> > To: "Dev-C Mailing List" <dev...@li...> > Sent: Saturday, January 10, 2004 8:26 AM > Subject: Re: [Dev-C++] News from devpaks repository > > > > Was planning to do both dll+static but I woudn't mind going one > way, > > I use static myself. > > > > Do you want TAO? If I was going to do that it was going to be > > separate. ACE by itself is kinda big and from what I hear (I > don't > > use TAO) it is even bigger. > > Iam not sure, but if its possible to do separate thats good. > TAO its much bigger. With bcc55 all ACE-libs are about 6Mbytes, > TAO and most of services(Naming/Trading/LifeCycle etc) are about > 70Mbytes. > Minimum CORBA configuration should be much smaller. > > > > > How do you comple ACE with Dev-C++? I just use the msys on top of > > mingw combination. Works fine for me, Win2k as well. > > I used Dev-C++ 'Import MS Visual C++ project' to generate basic > project file. > It is normal .dev project and when Dev-C++ trys to make that > library > command file lenght expands too big (<5000bytes?) > (ok, its possible to shorten filepaths etc. but that limit value > still exists ;) > MSYS and MinGW works fine for me too. > > -Mp > > > > > --- Markku Puro <mar...@ko...> wrote: > > > > > > ----- Original Message ----- > > > From: "David McKen" <ci...@ya...> > > > To: "Dev-C Mailing List" <dev...@li...> > > > Sent: Friday, January 09, 2004 6:49 AM > > > Subject: Re: [Dev-C++] News from devpaks repository > > > > > > > > > > Would anyone be interested in a dev-pak of the ACE Frameworks > > > > library? > > > > > > With DLL libs? > > > Does it include TAO (CORBA Middleware)? > > > > > > DoYou use Dev-Cpp or msys/MinGW? > > > With Dev-Cpp I run into "command line too long" error in ACE > > > library linking phase. > > > I suppose that its a Windows (Win2000) problem but does anybody > > > know if there is any way to avoid that? > > > > > > -Mp > > > > > > > > > > > I use it currently and wouldn't mind maintaing a dev-pak for > it. > > > The > > > > problem is it is quite big. Check out > > > > http://www.cs.wustl.edu/~schmidt/ACE.html to see what ACE is. __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus |
|
From: Gil <gil...@fr...> - 2004-01-10 23:15:17
|
Oooppsss it's not correct ! Sorry.
Correction:
void freeN(void **ptr) {
free(*ptr);
(*ptr) = NULL;
}
-----Original Message-----
From: Gil [mailto:gil...@fr...]
Sent: dimanche 11 janvier 2004 00:13
To: 'dev...@li...'
Subject: Re: [Dev-C++] malloc and free
free(ptr) cannot put ptr to NULL, simply because you don't pass the
address of ptr.
If you would that all you ptr that are freed, are set to NULL. Define a
fonction that do:
void freeN(void **ptr) {
free(*ptr);
ptr = NULL;
}
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.560 / Virus Database: 352 - Release Date: 08/01/2004
|