Search found 17 matches

by Project Mayu
Fri Apr 06, 2012 2:09 am
Forum: Coding Questions
Topic: Help getting Dot Net 4 to work in Purebasic
Replies: 19
Views: 4626

Re: Help getting Dot Net 4 to work in Purebasic

Whats left, is the part I have no idea on how to do in Purebasic, create an instance of the class and execute a method in it.
I am guessing everyone is using the source from the Powerbasic page, so that would be "Class1" and Method "Hello" with a parameter of String "name"
by Project Mayu
Wed Apr 04, 2012 4:05 pm
Forum: Coding Questions
Topic: Help getting Dot Net 4 to work in Purebasic
Replies: 19
Views: 4626

Re: Help getting Dot Net 4 to work in Purebasic

This is not the C++ source that I used, but it also loads Dot Net 4 from C++ http://blogs.msdn.com/b/msdnforum/archive/2010/07/09/use-clr4-hosting-api-to-invoke-net-assembly-from-native-c.aspx

With a native exe you can encrypt the Dot Net Metadata into your EXE, or have the rest of the app on the ...
by Project Mayu
Wed Apr 04, 2012 3:27 pm
Forum: Coding Questions
Topic: Help getting Dot Net 4 to work in Purebasic
Replies: 19
Views: 4626

Re: Help getting Dot Net 4 to work in Purebasic

Sorry I don't have the link saved anymore, if I remember correctly it was on the Microsoft Blog, or one of the blogs for a Microsoft Employee.
by Project Mayu
Tue Apr 03, 2012 7:08 am
Forum: Coding Questions
Topic: Help getting Dot Net 4 to work in Purebasic
Replies: 19
Views: 4626

Re: Help getting Dot Net 4 to work in Purebasic

I kind of Like Load3 (no locking of the file, what and the file can come from any source), but since I did not yet know enough about Purebasic, I figured I would try to get Load2 working.
Most of the interface stuff in Powerbasic was gathered using the Powerbasic com browser, but since Purebasic ...
by Project Mayu
Sun Apr 01, 2012 5:13 pm
Forum: Coding Questions
Topic: Help getting Dot Net 4 to work in Purebasic
Replies: 19
Views: 4626

Re: Help getting Dot Net 4 to work in Purebasic

I have this already working in Powerbasic, but since Powerbasic does not have a x64 version, I wanted to try to get it to work in Purebasic.

It is handy to have an app that tells you the you need to install Dot Net 4.0, or some other required component, instead of just crashing.

It also can be ...
by Project Mayu
Thu Mar 22, 2012 9:56 am
Forum: Coding Questions
Topic: Help getting Dot Net 4 to work in Purebasic
Replies: 19
Views: 4626

Help getting Dot Net 4 to work in Purebasic

This is my code so far, my goal is to get it to work in x64 but for now in x86 I can get up to loading the dot net assembly and at that point it fails

Interface ICLRMetaHost
QueryInterface(a.l, b.l)
AddRef()
Release()
GetRuntime(a.l, b.l, c.l)
GetVersionFromFile(a.l, b.l, c.l ...
by Project Mayu
Fri Feb 24, 2012 3:17 pm
Forum: Coding Questions
Topic: Help needed on web service response
Replies: 18
Views: 2836

Re: Help needed on web service response

1. Thanks Little John, it did not occur to me to use a different length function for unicode.

2. I find myself changing the ticks to d, as the ticks are now wrong, with q it looked like the number was half the amount required.

#SECONDS_UNTIL_1970_01_01 = 62135596800
#TICKS_PER_SECOND = 10000000 ...
by Project Mayu
Fri Feb 24, 2012 2:58 am
Forum: Coding Questions
Topic: Help needed on web service response
Replies: 18
Views: 2836

Re: Help needed on web service response

With Int()
i fail
l fail
q fail
f pass
d pass
by Project Mayu
Fri Feb 24, 2012 2:44 am
Forum: Coding Questions
Topic: Help needed on web service response
Replies: 18
Views: 2836

Re: Help needed on web service response

Here is the list of types tested
i failed
l failed
q failed
f pass
d pass

And as I am relatively New to Purebasic I need to know why?
by Project Mayu
Fri Feb 24, 2012 1:50 am
Forum: Coding Questions
Topic: Help needed on web service response
Replies: 18
Views: 2836

Re: Help needed on web service response

should not q and d and l output the same result, since they are all 64 bit? Help does not say there is any difference.

Sorry Kiffi but your example is a workaround, and would fail if the same name was used on different path levels.
I am looking to understand why my code, compiled as unicode, fails ...
by Project Mayu
Thu Feb 23, 2012 7:39 am
Forum: Coding Questions
Topic: Help needed on web service response
Replies: 18
Views: 2836

Re: Help needed on web service response

change
now_pb.i
to
now_pb.d

and it works on x64

Thanks Little John

Now just need to figure out the Unicode problem
by Project Mayu
Wed Feb 22, 2012 9:26 am
Forum: Coding Questions
Topic: Help needed on web service response
Replies: 18
Views: 2836

Help needed on web service response

Purebasic 4.60 x64 and x86
1. The following code does not work if I compile as Unicode

2. Does anyone have a conversion from Dot Net Ticks to Purebasic DateTime

For convenience the response is hard coded into the sample

Declare.l SplitPath(Array r.s(1), text.s, separator.s = ",")
Declare.s XML ...
by Project Mayu
Mon Dec 26, 2011 3:41 am
Forum: Coding Questions
Topic: calling a dll created in vb.net 2010
Replies: 6
Views: 3989

Re: calling a dll created in vb.net 2010

similar:
http://www.purebasic.fr/english/viewtopic.php?f=12&t=40058
Similar, but a pain in the x to use, you have to register a COM object in order to use it. If not registered, then program will crash.

And that is why I came up with the proper way to do it, if it's there then use it, If not ...
by Project Mayu
Fri Dec 16, 2011 11:20 am
Forum: Coding Questions
Topic: calling a dll created in vb.net 2010
Replies: 6
Views: 3989

Re: calling a dll created in vb.net 2010

If someone can help port this Power Basic code to Pure Basic, then you can call a Dot Net DLL
http://powerbasic.projectmayu.dyndns.org/