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

Who knows...???

What is the resolution of the warning:

cast from integer to pointer of different size

on passing any parameter to the last LPVOID of CreateWindow
??
Thanks
Nov 17 '05 #1
5 1943
Bonj wrote:
What is the resolution of the warning:

cast from integer to pointer of different size

on passing any parameter to the last LPVOID of CreateWindow


reinterpret_cast<LPVOID>(some_parameter)
Nov 17 '05 #2
nope, still happens.

"Edward Diener" <ed******@tropicsoft.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Bonj wrote:
What is the resolution of the warning:

cast from integer to pointer of different size

on passing any parameter to the last LPVOID of CreateWindow


reinterpret_cast<LPVOID>(some_parameter)

Nov 17 '05 #3
"Bonj" <a@b.com> wrote in message
news:eV**************@TK2MSFTNGP10.phx.gbl
nope, still happens.

"Edward Diener" <ed******@tropicsoft.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Bonj wrote:
What is the resolution of the warning:

cast from integer to pointer of different size

on passing any parameter to the last LPVOID of CreateWindow


reinterpret_cast<LPVOID>(some_parameter)

Use a pointer-sized variable or turn off the "Detect 64-bit Portability
Issues" option (/Wp64) in the compiler. For the background, see

http://msdn.microsoft.com/library/de...it_windows.asp
--
John Carson
1. To reply to email address, remove donald
2. Don't reply to email address (post here instead)

Nov 17 '05 #4
it doesn't have it on, the compiler's gnu.

"John Carson" <do***********@datafast.net.au> wrote in message
news:e%****************@tk2msftngp13.phx.gbl...
"Bonj" <a@b.com> wrote in message
news:eV**************@TK2MSFTNGP10.phx.gbl
nope, still happens.

"Edward Diener" <ed******@tropicsoft.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Bonj wrote:
What is the resolution of the warning:

cast from integer to pointer of different size

on passing any parameter to the last LPVOID of CreateWindow

reinterpret_cast<LPVOID>(some_parameter)


Use a pointer-sized variable or turn off the "Detect 64-bit Portability
Issues" option (/Wp64) in the compiler. For the background, see

http://msdn.microsoft.com/library/de...it_windows.asp

--
John Carson
1. To reply to email address, remove donald
2. Don't reply to email address (post here instead)

Nov 17 '05 #5
For storing pointers in integer variables, use INT_PTR, UINT_PTR types.

"Bonj" <a@b.com> wrote in message
news:eV**************@TK2MSFTNGP10.phx.gbl...
nope, still happens.

"Edward Diener" <ed******@tropicsoft.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Bonj wrote:
What is the resolution of the warning:

cast from integer to pointer of different size

on passing any parameter to the last LPVOID of CreateWindow


reinterpret_cast<LPVOID>(some_parameter)


Nov 17 '05 #6

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

Similar topics

1
by: Market Mutant | last post by:
I don't care about money. I want the best board: low CPU/memory take. Low MySQl usage. I have heard that PHPBB is the worst if you know PHP and read the codes. So I pass on that one. Can...
2
by: Hans Deragon | last post by:
Greetings. The official PyGTK website is down and not responding for a few days. http://www.daa.com.au/~james/pygtk/ Anybody knows why and where/when it will be brought up?
0
by: Steve Horsley | last post by:
I am trying to automate changing of a password for a particular user account (for use by scripts, not people). I am trying to use the command "passwd testuser" as root. Of course I can do this by...
2
by: Steve | last post by:
Hi, I'd like to know if anybody knows NTsendmail and how I can add variable that point to a textarea defined in a HTML? I can run it now but it shows the example text defined in ntsendmail.pl...
1
by: di boruman | last post by:
Hi, I would like to let a member a of class A know about the object it was created in: A a(this); 'this' would be stored in a member of A, for example B* b;
74
by: Suyog_Linux | last post by:
I wish to know how the free()function knows how much memory to be freed as we only give pointer to allocated memory as an argument to free(). Does system use an internal variable to store allocated...
4
by: neoswf | last post by:
Hey Does anyone knows a powerfull and relaible HTML / JS / CSS Optimization tool ? right now im using stylePro for optimizing CSS and afterwords optimizng it using...
68
by: James Dow Allen | last post by:
The gcc compiler treats malloc() specially! I have no particular question, but it might be fun to hear from anyone who knows about gcc's special behavior. Some may find this post interesting;...
2
by: reckless2k | last post by:
Client side; knows nothing of Derived: class Base { ... virtual void do_something() } #include "Base.h" void main() {
2
by: khajeddin | last post by:
hi there : is here anyone who knows how can i access to sevral "C pragraimg exercises" or "C programing problems".anyone knows any website?
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.