|
OK, so you need to take the .lib file from when you build that external dll, and link to it.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hello Mr arif,
you misunderstood MR Graus. He is saying that you forget to include .lib file which contain the runtime symbol for you external class(i.e. class from DLL).
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
The external application, i m using, has an .exe file as its output file.
I converted the output file to .lib file & then included it into my project, but the error is LNK1136 ,i.e. "Invalid or corrupt file".
Usman Arif
|
|
|
|
|
Usman Arif wrote:
The external application, i m using, has an .exe file as its output file.
Buddy I am here talking about .LIB file which will produce with the DLL (when you build it). you can find that .lib in DEBUG/RELEASE folder of DLL project
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Friend!
That .lib file is already there, no problem with that.
My problem is that i wanna access the external application's (in which .lib of my project was included already)function from my project.
now, r u clear with my problem? if yes, suggest some remedy for it; if possible.
Usman Arif
|
|
|
|
|
i can't seem to find matlab.h in my matlab7 folders or my visual stuido6.0 folders. Where can i get it
Thanks in advance
|
|
|
|
|
Do you have the rest of matlab, but not the .h file ? If not, then the .h file is of no use to you.
It sounds like you have it installed ( you have a matlab7 folder ), so do a system wide search for it. If you can't find it, I'd suggest that finding a copy of that file is a waste of time. If you're missing one file for some reason, you may be missing others, and a reinstall of matlab is the only sensible option IMO.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
i think i have the rest. Do u think i can download it somewhere? Because i don't think reinstalling will help.
|
|
|
|
|
um.... dude, if reinstalling it won't help, then your setup is fundamentally broken. If that file is not in your setup, and you need it, then your setup file is broken, or you're looking for the wrong thing.
No, I've never used matlab. It's a library for image processing, right ? I have written a lot of image processing code in C++ and C#, but the only external library I ever used was paintlib, and GDI+ makes that redundant.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Did you install the MATLAB Compiler Toolbox? What about MATLAB C/C++ MATH Library?
Best regards,
A. Riazi
|
|
|
|
|
What are you trying to do. I have MATLAB and a lot of toolboxes. MATLAB.h is not in my installation either. I have never run across anything that needs that include file.
If you are simply trying to call the matlab engine from your own program, you need engine.h. Also, look at the CP articles by A. Riazi and there is an online tutorial on Matlab's website.
|
|
|
|
|
Thanks for the response guys. I think I know what is wrong with the program. My friend emailed me this:
http://www.mathworks.com/support/solutions/data/1-TUUKR.html?solution=1-TUUKR
|
|
|
|
|
which one is better to use either union or struct.
rajesh
|
|
|
|
|
Depends what you want to do. The point of a union is that you have one value only, and you can change it's type ( that is, you can store an int or a string (for example), not that it has inbuilt conversion between types ). The point of a struct is to collect a group of values. Here's a link to what a union is.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccelng/htm/class_29.asp[^]
A struct is a class whose default access is public. They both exist because they do two different things.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Rajesh_K_Sharma wrote:
which one is better to use either union or struct.
Depends on Situations.But, personally I have never liked Union!.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
ThatsAlok wrote:
personally I have never liked Union!.
sometimes, it become THE feature to be used...
i remember a project i made last year, when i was programming for a microprocessor... we had to know how the processor memory was, where would be stored the hardware datas, and to implement this (wheter the periph was reading or writing), the datas was in distinct registries. but sometimes happend the fact that those two registries were at the same address...
so, what to use ? union s...
but i agree, it's not the most easy thing to learn about from C.
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
when i was programming for a microprocessor... we had to know how the processor memory was,
Hi Tox,
As I don't program in MicroController/hardware, Unions would never be my first Choice.
That's just my personel feeling, I am not forcing any BODY to use structure instead of UNIONS.
It's always DEPENDS ON SITUATION which one is better,
let takes a example,if you want to keep Name and age of employee in a DATA STRUCTURE, your choice always would be STRUCTURE (in case of C ) as you don't want to mess up the data!.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
ThatsAlok wrote:
It's always DEPENDS ON SITUATION which one is better
that's logic, i entierly agree with you sir...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
sir...
.............It's a great Pleasure!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
This means that you have never needed union . There is nothing to like or not to like. In fact, the union was introduced by John von Neumann (first computer idea creator) at the beginning of 20th century, if I'm not wrong, when he presented interpretting of a memory word once as a machine code or secondly as a piece of data. Thus you have the ancient union .
|
|
|
|
|
liquid_ wrote:
This means that you have never needed union
Hello Mr Liquid,
I Believe, I am repeating myself i am application developer, It's really depend upon situation of project which thing will be better. you don't want to mess data of Student Name, Age and Class by using the UNION.
yeah i know UNION ar emuch better in other cases as mentioned by Mr Tox!
Thanks
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
using union is good think if u really know where to use n how to use it.
I pesonaly use union as annonymous inside class or struct coz suppose if u have more than one embeded class-object in some class n want to select any one of it then u can use union to allocate memory only for one of that, so no need to allocate memory for each n every embeded class-object, so union is good to use
|
|
|
|
|
to sum up,
use struct s when you don't have to make a choice and want all the members to be available at the same time,
use union s when datas can be hidden by some others, and the fact that another member write the same memory area shouldn't care.
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
I want to save a web page just from a url.that means i don't want to navigate to that url first.
I want all the resources are saved correctly. The links in the local page that saved must also be active.
One more,I don't use wbebrowser ctrl. There should not show a save as dialog box just like IE. The saving procress should be done silently.
Thank you everyone. Any ideas?
|
|
|
|
|
You need to connect to the site, and download the HTML. Then you can use a regex to trawl it for links to resources, and download those ( boost has a regex add in for C++ ). If you want the links on the page to work offline, then you need to change them to something local, and repeat the process for those pages, so they get downloaded as well, to the location that the new link points to. If you do this recursively, you'll need a big hard drive, and to do some checking for circular links.
Christian Graus - Microsoft MVP - C++
|
|
|
|