Search found 1607 matches

by Shardik
Thu Dec 14, 2006 12:01 pm
Forum: Coding Questions
Topic: telnet server
Replies: 8
Views: 3897

@Tranquil: This is a stripped down and working code example to logon into a TSO session on an IBM mainframe via Telnet: ; Example code to logon into TSO on an IBM Mainframe via Telnet ; ----- Change these settings to those of your mainframe account #AccountNumber = "Your account number" #P...
by Shardik
Thu Dec 14, 2006 9:30 am
Forum: Coding Questions
Topic: telnet server
Replies: 8
Views: 3897

At work we use Rumba as a Mainframe, and I tried to get access through pb to its telnet server. It seems to me that you have some misconceptions in mind for communication with a mainframe. If you are communicating with an IBM mainframe running z/OS (formerly OS/390, MVS/ESA, MVS/XA, MVS/SP) in form...
by Shardik
Wed Dec 13, 2006 2:13 pm
Forum: Coding Questions
Topic: telnet server
Replies: 8
Views: 3897

@ChebbyShabby: Take a look at Lars' Telnet suite posted at the German forum: http://www.purebasic.fr/german/archive/viewtopic.php?t=4603 Download link: [url=http://]home.arcor.de/master_lars/Lars'%20Telnet.zip[/url] I tried. But I struggled into the obscure telnet protocols. What's so difficult abou...
by Shardik
Wed Dec 13, 2006 1:48 pm
Forum: Coding Questions
Topic: Get editorgadget LINE/COL when caret is moved?
Replies: 11
Views: 4563

@utopiomania:
Did you try the forum search? netmaestro already posted a similar example at october 21st:
http://www.purebasic.fr/english/viewtop ... 50&start=3
by Shardik
Wed Nov 29, 2006 4:47 pm
Forum: Coding Questions
Topic: SetCursor_() - Pippet in paint??
Replies: 44
Views: 9384

If you want to see which cursors are contained as resources in a library (like .Exe, .DLL, .OCX or .Scr), try the following code example which displays all cursors of MSPaint.Exe: #RT_GROUP_CURSOR = 12 NewList ResNameList.S() Procedure.l EnumResNameProc(ResHandle.L, ResType.L, ResName.L, AppParam.L)...
by Shardik
Tue Nov 28, 2006 3:48 pm
Forum: Coding Questions
Topic: SetCursor_() - Pippet in paint??
Replies: 44
Views: 9384

srod, unfortunately I am no expert in working with resources and therefore can't answer your question about the details in the difference between the use of ExtractIcon_() and LoadImage_(). But if you want to know how to scan for resources in DLL- and Exe-Files, take a look into the nice code from V...
by Shardik
Tue Nov 28, 2006 11:31 am
Forum: Coding Questions
Topic: SetCursor_() - Pippet in paint??
Replies: 44
Views: 9384

netmaestro,

I am very proud of having been able to help you, because your (and srod's) uncountable and very profound code examples have made my programming life a lot easier... :wink:
by Shardik
Tue Nov 28, 2006 11:03 am
Forum: Coding Questions
Topic: SetCursor_() - Pippet in paint??
Replies: 44
Views: 9384

netmaestro, I used ResourceHacker ( http://www.angusj.com/resourcehacker ) to list all resources from MSPaint.Exe. When using resource hacker to open MSPaint.Exe you have to open the tree view node "Cursor Group" and take a look at the different cursor nodes. When opening node 1204 and cli...
by Shardik
Tue Nov 28, 2006 10:19 am
Forum: Coding Questions
Topic: SetCursor_() - Pippet in paint??
Replies: 44
Views: 9384

Unfortunately I dont have this icon on my harddisc. But you can surely extract it from Paint with some Icontools. The following 'icon extractor' only locates 6 icons embedded within mspaint.exe This code example demonstrates how to use the cursor resource from MSPaint.Exe (tested with WinNT SP6 and...
by Shardik
Tue Nov 21, 2006 9:07 am
Forum: Coding Questions
Topic: ExplorerTreeGadget Refresh Listing Question
Replies: 2
Views: 1350

Simply do a SetGadgetText(GadgetID, GetGadgetText(GadgetID) + "*.*") to refresh the ExplorerTreeGadget as in the example below: OpenWindow(1, 0, 0, 290, 370, "ExplorerTreeGadget Refresh", #PB_Window_ScreenCentered | #PB_Window_SystemMenu) CreateGadgetList(WindowID(1)) ExplorerTre...
by Shardik
Wed Nov 15, 2006 10:13 am
Forum: Coding Questions
Topic: Get selected Text from other Application
Replies: 9
Views: 2374

Have you tried whether the example code from freak suits your needs?
http://www.purebasic.fr/german/viewtopi ... 9&start=10
by Shardik
Fri Nov 10, 2006 3:38 pm
Forum: Coding Questions
Topic: Help: How to set duplex printing
Replies: 15
Views: 8451

Both of you beat me to it this morning. Been up a few hours earlier than me here on the east cost of the US, right? Terry, as one of my daughters currently visits a highschool in New Jersey I know that the New Jersey and New York time is six hours behind the current German time, so when I leave my ...
by Shardik
Fri Nov 10, 2006 12:54 pm
Forum: Coding Questions
Topic: Help: How to set duplex printing
Replies: 15
Views: 8451

A short and straightforward bare bones solution for those who want to test the duplex capability of their default printer: Buffer.S = Space(260) DefaultPrinterName.S DefaultPortName.S GetPrivateProfileString_("WINDOWS", "DEVICE", "", @Buffer, 260, "Win.Ini") D...
by Shardik
Thu Nov 09, 2006 2:40 pm
Forum: Coding Questions
Topic: Help: How to set duplex printing
Replies: 15
Views: 8451

Klaus, you are right. Of course I know this Microsoft quote too. But I only wanted to deliver a quick and easy solution. You are also right regarding my omission of dmField. Therefore I was surprised myself that my "minimalistic" example was running flawless even without dmField :wink: But...
by Shardik
Thu Nov 09, 2006 8:58 am
Forum: Coding Questions
Topic: Help: How to set duplex printing
Replies: 15
Views: 8451

Terry, on a Lexmark C920 the change between landscape and portrait mode is successful but the duplex print fails. For a quick solution I have adapted the very short and simple code from Andreas from the German forum (example for printing on the default printer in landscape mode, http://www.purebasic...