473,385 Members | 1,359 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,385 software developers and data experts.

Reg: calling C++ API having HWND parameter in C#

9
hi

i am having a API function
RP1210_ClientConnect(HWND hwndClient,
short nDeviceID,
char far *fpchProtocol,
long lTxBufferSize,
long lRcvBufferSize,
short nIsAppPacketizingIncomingMsgs);

I am trying to call the call this API function in My C# application using
DLLImport function

please let me know what i need to pass for HWND as C# doesn't have any HWND class.

Thanks in advance
---Sree
Nov 14 '07 #1
1 1551
Plater
7,872 Expert 4TB
That's what? a windows handle? or just a handle? it's probably just a socket handle.
Try passing that in.
Or google it.
Nov 14 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: amit bharadwaj | last post by:
hi am using panel with autoscroll , now i want to call window api BOOL GetScrollInfo(HWND hwnd, int fnBar, LPSCROLLINFO lpsi)); now am doing like tht unsafe public static extern bool...
7
by: Kenneth Brody | last post by:
The recent thread on "query about main()" got me thinking... As I recall, calling a function with the wrong parameters causes undefined behavior. (These all assume that no prototype of foo()...
10
by: SQACPP | last post by:
Hi, I try to figure out how to use Callback procedure in a C++ form project The following code *work* perfectly on a console project #include "Windows.h" BOOL CALLBACK...
4
by: cozumeldiver | last post by:
I need to call the below function from a C# application. Having problems converting it to C#. I think the BOOLs are just integers in C#. I have tried char and string for the PAWDOBJKEY. I always...
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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: 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?
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...

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.