473,396 Members | 2,052 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,396 software developers and data experts.

SMS Messaging in eVC++

Hello.

I'm currently developing an application in eVC++ which will be compiled as a
DLL and included in a VB.NET PocetPC program. I compile in eVC++ having
included the sms.h header file and having linked to the sms.lib library.

Here's my code for the OpenSMSHandle function:
UNMANAGED_API bool OpenSMSHandle()
{
SMS_HANDLE hSms = NULL;
HANDLE hSmsEvent = NULL;
HRESULT hr = S_OK;

OutputDebugString(TEXT("Entering OpenSMSHandle()"));

hr = SmsOpen(SMS_MSGTYPE_TEXT, SMS_MODE_RECEIVE, &hSms, &hSmsEvent);

if(FAILED(hr)){
OutputDebugString(TEXT("Could not open a handle to the SMS text message
service."));
return FALSE;
}

if(hSms){
SmsClose(hSms);
hSms = NULL;
}

return TRUE;
}
Everthing looks like it should work just fine, but when I compile I get the
error messages:
Unmanaged.obj : error LNK2019: unresolved external symbol SmsClose
referenced in function OpenSMSHandle
Unmanaged.obj : error LNK2019: unresolved external symbol SmsOpen referenced
in function OpenSMSHandle

This is strange since the compiler seems to recognize the the data
structures which are declared in the header file (such as SMS_HANDLE), while
at the same time the functions definde in the sms.h header file (like
SmsOpen) aren't recognized.

Why can't the compiler recognize the Sms functions? Thanks for any help you
can provide.
Nov 22 '05 #1
0 900

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

Similar topics

0
by: devgru | last post by:
I've developed several programs for the Pocket PC in eMbedded Visual C (API calls only, no MFC). All of these programs made use of a third-party DLL called SecureTrial (www.zedev.com) to create...
2
by: Dennis Owens | last post by:
I want to develop a Client/Server messaging system that does not require Microsoft messaging. I want to use the .Net remoting, but I am having some real problems with the remoting. The remoting...
0
by: Dennis Owens | last post by:
Read below for previous conversation. We are developing an application that will some day run on anything from a computer down to a PDA (this is were the Lightweight comes in). The messaging...
0
by: SkyRender | last post by:
Hello. I'm currently developing an application in eVC++ which will be compiled as a DLL and included in a VB.NET PocetPC program. I compile in eVC++ having included the sms.h header file and...
0
by: Systems001 | last post by:
Anyone had these issues with EVC 4 Debugger? When debugging to an actual unit (in this case, Dell Axim, CE OS V4) The debugger will only stop on occasion at break points, if at all. And once...
0
by: Boris | last post by:
I install embeeded visual C++ sp2 (eVC 4.0) on new instalation of windows XP pro en SP1 () (with no update). Then I to install SDK for windows ce dot.net 4.2. Installation failed with error...
0
by: drblow | last post by:
Hi there! I'm new here, and I'm just starting to learn a little about coding, so please be gentle with me! :0) I have DL'ed EVC++4 from MS, and installed it OK. But when I try to create a new...
10
by: Eric BOUXIROT | last post by:
hi there, i'm working on a smart application project on VB.NET. i must call API (custom eVC++ DLL) but i have some trouble with mashalas attribute..... i have copy/past a sample on msdn help but...
0
by: Eric BOUXIROT | last post by:
hi there, i want to debug a dll made with EVC++. the application is under VB.NET. in EVC++ project settings i have set this : in debug tab i set in category general remote executable path and...
2
by: jparulan | last post by:
Hi All, I am developing web service that does not use IIS, I was successful on deploying a normal web service with System.Data and System.Web namespaces. BUT when I added the...
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: 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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.