473,378 Members | 1,470 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

test function exported in DLL with rundll32 ?

Hi

I built a simple c function into DLL successfully (insofar no errors)

/*************** MyCFunc.c **********************
#include <stdio.h
// Define DllExport to declare exported symbols
#define DllExport __declspec( dllexport

// Prototype the function
extern DllExport char* Say(char*)

// Define the function
extern DllExport char* Say(char* x

printf("\nHe said: %s", x)
return x
But when I test it with rundll32 command:
rundll32 Say.dll Say "Hello
I got nothing. So I want to test calling it from another program. But how to do that

thanks a lot for any tip
Be
Nov 17 '05 #1
0 1461

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: vijay | last post by:
I'm having trouble with calling an exported function in a native DLL compiled with eMbedded Visual C++ using C#. Basicly, I have one exported function in the DLL: whenever i execute this exe to...
1
by: seash | last post by:
class xyz{ public void somefunction{ if(this.folderBrowserDialog1.ShowDialog() == DialogResult.OK) { m_varFolderPath = this.folderBrowserDialog1.SelectedPath; m_varFolderPath += ...
20
by: Brian Tkatch | last post by:
An ORDER BY a simple-integer inside a FUNCTION, results in SQL0440N, unless the FUNCTION expects an INTEGER as its parameter. For example: DECLARE GLOBAL TEMPORARY TABLE A(A CHAR(1)) INSERT INTO...
8
by: srilalpr | last post by:
Hi, I have a dll and one of its exported function is suppossed to return a pointer to an object. How can i check whether the exported function is of the same prototype i want. Please...
1
by: Lloyd Dupont | last post by:
I have some managed C++ interacting with native DLL, for good integration I'm setting up some function pointer in the native DLL, passing some function pointer from the managed world....
2
by: Amit | last post by:
how can i call one project function in other project within a single solution. plz tell me the solution
6
by: Notre Poubelle | last post by:
Hello, I have a strange situation where I'm trying to export a function in a class, but it won't get exported. I actually have a couple of header and cpp files. Each pair of header and cpp...
0
by: =?Utf-8?B?QWJieQ==?= | last post by:
Hi all, i created an asp.net application which uses crystal report for printing invoices. Everything works well and as desired but today day it wasn't responding at all. On further...
0
by: George3 | last post by:
Hello everyone, Some study these days about address of exported function in DLL. It is appreciated if you could review and comment. (for C++ DLL/EXE only) 1.Inside DLL
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.