Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

error compiling

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-31-2009, 09:40 AM
Junior Member
 
Join Date: Dec 2008
Location: Legazpi City, PH
Posts: 11
Send a message via MSN to twisted Send a message via Yahoo to twisted
Awards Showcase
Beta Tester 
Total Awards: 1
Default error compiling

what does this error mean:

Error Message: error CS0176: static member
'dzHW.dzHW.GetpProcessHandle(string)'cannot be accessed with an instance reference; qualify it with a type name instead
line number: 12
line: process = procname.GetProcessHandle(ProcessName)

Code:
'part of App_Start
Sub App_Start
    procname.New1
    ProcessName=
"device.exe"
    process = procname.GetProcessHandle(ProcessName)
    
If process > 0 Then sysland_statechanged
    
If process < 0 Then Msgbox("myapp is not running.","Error!!!",cMsgboxOK,cMsgboxNone)
    frmLandscape.Text=
""
end sub
thanks very much.
Reply With Quote
  #2 (permalink)  
Old 01-31-2009, 10:34 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Unfortunately dzt's library wasn't updated to support the optimized compiler.
This issue is caused due to a difference in the functions signature between the device library and the desktop library.
A simple workaround is to remove the reference of dzHWDesktop.dll and add dzHW.dll to the desktop and device.
You will not be able to run your program on the desktop but it should compile fine (after compiling you can return to the previous configuration).
Reply With Quote
  #3 (permalink)  
Old 01-31-2009, 02:36 PM
Junior Member
 
Join Date: Dec 2008
Location: Legazpi City, PH
Posts: 11
Send a message via MSN to twisted Send a message via Yahoo to twisted
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by Erel View Post
Unfortunately dzt's library wasn't updated to support the optimized compiler.
This issue is caused due to a difference in the functions signature between the device library and the desktop library.
A simple workaround is to remove the reference of dzHWDesktop.dll and add dzHW.dll to the desktop and device.
You will not be able to run your program on the desktop but it should compile fine (after compiling you can return to the previous configuration).
thanks very much.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error after compiling J12345T Questions (Windows Mobile) 6 10-22-2008 11:59 PM
Compiling error to device Net 2.0 bparent Questions (Windows Mobile) 2 10-13-2008 06:23 PM
ERROR on compiling superbabicka Questions (Windows Mobile) 9 08-17-2008 06:56 AM
Error compiling 6.01 magi6162 Questions (Windows Mobile) 4 01-14-2008 03:13 PM
Error when compiling borderless Questions (Windows Mobile) 2 11-14-2007 05:36 PM


All times are GMT. The time now is 08:06 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0