Click here to Skip to main content
15,888,733 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Send data to a service Pin
Maxwell Chen21-Feb-08 23:00
Maxwell Chen21-Feb-08 23:00 
GeneralRe: Send data to a service Pin
Rajkumar R22-Feb-08 2:47
Rajkumar R22-Feb-08 2:47 
Generallnk file path [modified] Pin
john563221-Feb-08 19:35
john563221-Feb-08 19:35 
GeneralRe: lnk file path Pin
Iain Clarke, Warrior Programmer22-Feb-08 5:07
Iain Clarke, Warrior Programmer22-Feb-08 5:07 
QuestionC++ package objects into separate .dll class library projects Pin
TheGeneral6921-Feb-08 18:40
TheGeneral6921-Feb-08 18:40 
AnswerRe: C++ package objects into separate .dll class library projects Pin
Rajkumar R21-Feb-08 19:15
Rajkumar R21-Feb-08 19:15 
GeneralRe: C++ package objects into separate .dll class library projects Pin
TheGeneral6921-Feb-08 20:40
TheGeneral6921-Feb-08 20:40 
GeneralRe: C++ package objects into separate .dll class library projects Pin
TheGeneral6925-Feb-08 14:50
TheGeneral6925-Feb-08 14:50 
I have read the article 'DLLs are simple: Part 2' and have successfully moved the code for my Table class into it's own project / .dll.

The example was for VC++ 6.0, whereas my application is in VS 2005. The main difference was the 'Project > Settings > Link (tab)' -- this doesn't exist in VS2005. To add the .lib file to the project, I put it in the main project directory and right-clicked on the solution and added an existing item, for file type I had to select 'all file types *.*', and added the .lib file to the project. I put the .dll in the debug folder, where the .exe gets put after a build.

What I haven't done yet is to add my .dll project to the main project. I plan to add a new class library to the main application project, and copy and paste the code from the .dll project into it, and hope that it creates a .dll file, a .lib file, and a .exe file. The hope is that I would then be able to take the .dll, .lib, and .h file and use it in other projects.

The purpose of this was to create a fast distance function, which does not call the sqrt function. It takes two or three parameters and returns length of the 'hypotenuse' without using sqrt. With a lookup table of only three points, I get an accuracy of within 1.5%, more than good enough for my level of detail calculations. It will be interesting to see if my function is actually faster or not.

Steve
AnswerRe: C++ package objects into separate .dll class library projects Pin
Rajkumar R25-Feb-08 16:56
Rajkumar R25-Feb-08 16:56 
GeneralRe: C++ package objects into separate .dll class library projects Pin
TheGeneral6925-Feb-08 19:12
TheGeneral6925-Feb-08 19:12 
GeneralAbout constructer Pin
rowdy_vc++21-Feb-08 17:46
rowdy_vc++21-Feb-08 17:46 
AnswerRe: About constructer [modified] Pin
Rajkumar R21-Feb-08 18:31
Rajkumar R21-Feb-08 18:31 
QuestionRe: About constructer Pin
CPallini21-Feb-08 21:23
mveCPallini21-Feb-08 21:23 
GeneralRe: About constructer Pin
Hamid_RT23-Feb-08 1:54
Hamid_RT23-Feb-08 1:54 
GeneralRe: About constructer Pin
David Crow22-Feb-08 2:41
David Crow22-Feb-08 2:41 
GeneralNooby would like assistance with compile error building a property sheets program [modified] Pin
doorprize21-Feb-08 17:06
doorprize21-Feb-08 17:06 
GeneralRe: Nooby would like assistance with compile error building a property sheets program Pin
Rajkumar R21-Feb-08 18:23
Rajkumar R21-Feb-08 18:23 
GeneralRe: Nooby would like assistance with compile error building a property sheets program Pin
David Crow22-Feb-08 2:43
David Crow22-Feb-08 2:43 
GeneralSystemtray Pin
act_x21-Feb-08 15:04
act_x21-Feb-08 15:04 
GeneralRe: Systemtray Pin
Stephen Hewitt21-Feb-08 16:06
Stephen Hewitt21-Feb-08 16:06 
GeneralVersion Info Pin
Bram van Kampen21-Feb-08 14:47
Bram van Kampen21-Feb-08 14:47 
GeneralRe: Version Info Pin
Stephen Hewitt21-Feb-08 14:55
Stephen Hewitt21-Feb-08 14:55 
QuestionRe: Version Info Pin
David Crow22-Feb-08 2:45
David Crow22-Feb-08 2:45 
Generalresizing a property sheet Pin
act_x21-Feb-08 14:45
act_x21-Feb-08 14:45 
GeneralRe: resizing a property sheet Pin
jhwurmbach21-Feb-08 23:47
jhwurmbach21-Feb-08 23:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.