That looks very cool. I actually tried using LoadLibrary and GetProcAddress manually with little success. If I can just figure out how to get constants and structs out of the dll this will work beautifully. (Anyone know how to do that? If not, I'll just have to keep poking at it) Thanks very much!
-Mark On Tue, 2002-08-27 at 10:07, Joel Lawhead wrote: > Mark, > An alternative to SWIG might be Sam Rushing's "calldll" module located at: > http://nightmare.com/software.html > > I haven't used it yet but supposedly it lets you call any function in > any dll. Looks like there are several examples too. I'd be curious to > hear if you have any luck with it. > > Good Luck, > Joel > > > Roach, Mark R. wrote: > > >On Tue, 2002-08-27 at 09:05, [EMAIL PROTECTED] wrote: > > > > > >>As I do not know whether this mail reached the original poster - I could > >>not find the listserver in the TO address - > >>I allow to send it forward to the list. > >> > >>Here also an explanation of how to generate and check preprocessor > >>output, from the MSDN Library > >>(under C/C++ Preprocessor Reference, The Preprocessor) > >> > >>Microsoft Specific > >> > >>You can obtain a listing of your source code after preprocessing by > >>using the /E or /EP compiler option. Both options invoke the > >>preprocessor and output the resulting text to the standard output > >>device, which, in most cases, is the console. The difference between the > >>two options is that /E includes #line directives and /EP strips these > >>directives out. > >> > >>END Microsoft Specific > >> > >> > > > >I don't think I understand. I don't have any project files, all I have > >is a header file for the microsoft terminal services api (wtsapi32) > >which I want to wrap in python, similar to the other win32 extensions: > >win32api etc. Am I missing a big step? Do I need MSVC? I was planning on > >just using my current mingw setup. > > > >I thought that it goes something like this: > > > >wtsapi32.h + swig -> wtsapi32.py wtsapi32module.c > > > >which I then compile against the python headers to generate a module. Is > >there more to it than this? > > > >Thanks, > > > >Mark > > > >_______________________________________________ > >ActivePython mailing list > >[EMAIL PROTECTED] > >To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > >Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython > > > > > > > > > > > > _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython
