|
I've found out how to fix it!
It worked!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C# and C++!
|
|
|
|
|
I've found the solution!
I added the function name in the .def file under the EXPORTS line in the file!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C# and C++!
|
|
|
|
|
|
Oh... so that's the "right" solution?
well... I'll try that out!
Thank you man!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C# and C++!
|
|
|
|
|
I tried your advice and wrote like this:
// .h file
extern "C" void MyFunc();
// .cpp file
extern "C" void MyFunc()
{
// bla bla
}
But when I "View dependencies" there is no functions that I can see! ?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C# and C++!
|
|
|
|
|
Rickard Andersson wrote:
But when I "View dependencies" there is no functions that I can see! ?
If you use extern "C" that's to avoid name mangling.
If you want to export a function you can use __declspec( dllexport )
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
|
|
|
|
|
The compiler decorates the names when you export using __declspec(dllexport). To have undecorated names, use a DEF file (as you found out)
James
Drinking In The Sun
Forgot Password?
|
|
|
|
|
Check out The Ultimate (DLL) Header article (in the DLL section) by Joseph Newcomer. It explains exporting, .DEF files, etc., in detail and gives a good way to manage all of this stuff.
No generalization is 100% true.
Not even this one.
|
|
|
|
|
can some give me the CODE for removing noise from an image..
thanks
looking forward from all the gurus of code
|
|
|
|
|
first, define "noise". different noises require different filters.
-c
Cheap Oil. It's worth it!
|
|
|
|
|
by noise i mean dat the image is blurred and dark... and this noise is giving me problems in edge detection too..
secondly if any one has got the algorithm or free source code for edge detection ..ill be higly obliged to him/her if they mail it to me
looking forward from all the gurus of code
|
|
|
|
|
if it's "blurred and dark" then you probably want to sharpen and lighten it or change the contrast.
digital noise removal techniques usually end up adding more "blur" to the image, as they are most often based on weighted averages of pixels in a given area (ie. they find the weighted average of the NxN pixels surrounding each input pixel and assign that value to the corresponding output pixel). the way the pixels are weighted will determine the types of noise the filter is good at removing. but, all of them blur the image in some form.
sharpening an image can be as simple as applying the appropriate convolution matrix to the image.
lightening an image is easy: just add a constant value to each pixel component; it's a linear change. changing contrast is similar, but you add a different amount to the input pixel based on its current value; it's a non-linear change.
for edge detection, look around this site (in the GDI+ section, maybe).
-c
Cheap Oil. It's worth it!
|
|
|
|
|
I am trying to use a hash_map that comes with VS.NET. The question is can I specify the size of the hash like in MFC with CMap::InitHashSize?
Thanks
Best regards,
Alexandru Savescu
|
|
|
|
|
Hi,
Is there anyway to get the information about all the users who had logged in that machine,also login & logout timing?
Thanks
Neha
|
|
|
|
|
I made an Excel automaion project to convert an excel document to PDF file.
In Excel 2000 (v. 9.0), it runs well with :
void PrintOut(const VARIANT& From,
const VARIANT& To,
const VARIANT& Copies,
const VARIANT& Preview,
const VARIANT& ActivePrinter,
const VARIANT& PrintToFile,
const VARIANT& Collate,
const VARIANT& PrToFileName);
But in Excel 97 (v. 8.0), a modal window asks for a PDF destination file, and i want to avoid it :
void PrintOut(const VARIANT& From,
const VARIANT& To,
const VARIANT& Copies,
const VARIANT& Preview,
const VARIANT& ActivePrinter,
const VARIANT& PrintToFile,
const VARIANT& Collate);
How can i do please ?
Thanks.
Aziz Rajim
|
|
|
|
|
H all,
I’m having a problem using the Micsoft DOM XML-Parser in C++. After an exception has been thrown and catched on another place in the application, the following occur: Some Elements can be read but not set. When I try to set certain elements, an exception is thrown. This problem remains until the application has been restarted. Has anyone seen these problem before? Do anyone knows where to find documentation on Microsoft DOM XML parser?
The application is COM-Based, using the version 3.0 of the DOM parser and developed in Visual C++ 6.0. I'm thankful for any input on this problem,
cheers,
/_henrik
Henrik Sternberg,
Cambridge Technolgy Partners, Germany
www.ctp.com/ce
henrik.sternberg@ctp.com
|
|
|
|
|
I am trying to mahe a multimon application with DDraw, I am working on visual 6.0 and DirectX 7.0 on W2K.
I would like to undestand why when I launch "DirectDrawEnumerateEx" with the flag DDENUM_DETACHEDSECONDARYDEVICES it does not enumerate my secondary screen device. In this case of course my second screen device is detached from desktop. When the second screen device is attached, it works well (with the flag DDENUM_ATTACHEDSECONDARYDEVICES) but I don't like much this configuration for a basic user is a little disturbing.
Any suggestion is wellcome, even if you know where I can find information about that
|
|
|
|
|
Hi all,
I have a strange problem: my application end in error when I refresh a scroll view under XP. The error is an ASSERT at line 354 on VIEWSCRL.CPP (the vaule of x position is < 0).
If I restore the old graphical interface (like win 98) all is OK.
Anyone know what appens?!
Thanks a lot.
|
|
|
|
|
I currently find trouble with using MCI command strings for stretching an avi movie to double size (by "put" command). The movie can run on some machines only, not all, although in MSDN says it is possiple. Could someone give me any idea?
Thanks in advanced.
|
|
|
|
|
Hi all. I'm a bit of an inexperienced programmer, in fact I'm a graduate Micro Engineer and didnt do a whole lot of programming at university, especially not any windows programming. In fact I'm very daunted sometimes at the scope that there is in programming and the fact that I know the tinyest little bit of it.
Anyway, at my new job, I've been having a great time learning (teaching myself) about it though and so far have successfully written my first program which is a dialog application (MFC) that connects to a bunch of different protection relays using serial, ethernet and fibre optic connections, to collect some data. This is a prototype and is working well but I'm going to have to do a bit more learning for the next stage.
They want an automated solution where the details of the relays at each substation are stored in a database and the data that needs to be collected can be done automatically. It looks like I'm going to learn about databases and windows services to get this done. If anyone could point me in the right direction as to where I should start it would be appreciated. I'm mostly daunted about database programming at the moment because I really have very little idea about what is involved with all that.
Thanks for any advice.
Life's not fair I tell ya, I life was fair I would've been born rich instead of so damn good looking!
|
|
|
|
|
You are in the right place! Codeproject is the place where you can
find source code that may help you to build a software from scratch!
There are many articles here, way to go is to look at them... Post some
message here (not in the lounge!), I am sure you will get some help!
Good luck!
One good thing about getting older, you don't lose the ages you've been!
|
|
|
|
|
Database access is easy - MFC provides a number of options that do the grunt work for you. I'd suggest looking in the appropriate section of CP and ask questions if that does not help.
Good luck !!!
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002
|
|
|
|
|
HI, I have added some menu items using CMenu::AppendMenu
and it all works nice. However, they miss the little help text that is displayed in the first pane in the status bar like when you create the menu items using the resource editor. Anyone knows a smart way to add help text string? Do I have to handle the message ON_UPDATE_COMMAND_UI for the ID_SEPARATOR which is the first pane in the statusbar? Or is there a better way?
Thanks, Patric
|
|
|
|
|
The fly by help is read from the string table. Make strings with the same resource ID as the corresponding menu items and it'll all automagically work.
--Mike--
Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer
Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Doesn't the mainframe have to be the parent of the menu for that to work?
Roger Allen
Sonork 100.10016
If I had a quote, it would be a very good one.
|
|
|
|