Those are good things to know certainly but I am using a compiler that was made by microsoft circa 2001 (and a borland c compiler from the same era).. It also doesn't realy answer the question as far as how to make that an array of strings from the command line. I am having a hard time finding an example on the internet.. The code I am trying to add a command line is here (if that is helpfull and it may not be)
http://dexrowem....
User Profile
Collapse
-
I saw this as an example. I haven't figured out how to split the line to get an array of what is on the command line (or if it is doing that how it is being done)
...Code:void CCommandLineDlg::OnBtnCmdLine() { // TODO: Add your control notification handler code here char CmdLine[80]; char CmdResult[80]; strcpy(CmdLine, GetCommandLine()); sprintf(CmdResult, "%s", CmdLine);Leave a comment:
-
It seems to compile fine and one of the if's is working it is when I look for a string instead of a charecter it complains.. is there an example of the other somewhere where I compare what I get with your command??? I saw that but didn't understand how to use it (no good examples)Leave a comment:
-
command line options in winmain with __argv
I want to compare what I get on the command line in winmain with an if statement.. I am getting a beginers error but I don't have an example to use to fix it.. cannot convert from 'const int' to 'char *' in this line if (__argv[1] = 'file'){};
I am very lost with this error and any help would be apreaceated
...Code:int WINAPI WinMain(HINSTANCE hInstance, //handle to current instance HINSTANCE hPrevInstance, //pointer
-
I haven't tried this yet but another way to write your program may be to use vim as a com object (with pywin or maybe through wxpython). There was a recent post on the vim board that describes a way to insert a column...
http://groups.google.c om/group/vim-experiment/browse_thread/thread/447a01d7014be5c 9
This has all been pretty tempting but I have been coding other stuff...Leave a comment:
-
I have a couple of examples that I have been distributing one is in tracker8.py available in my dex tracker project (url at bottom). What I did was use a main function. The code you are writing looks like it would be usefull for what I am doing and maybe something that would allow a series of numbers from a file into the column you are zeroing out might be a good contribution to my project :) ... http://www.stormpages. com/edexter/csound.htmlLeave a comment:
-
looking for a simple bitmap on canvas example for wxpython
I am looking for a simple example of moving a bitmap on a wxpython canvas. I am wanting to do something that most people do with pygame (because pygame is slow but working on my computer may be my graphics card). I have been searching through google and I haven't found that much (found some tkinter stuff though)... any help would be nice. -
autoit can be used as a com object If you are using windows that may be a good answer or to use internet explorer as a com object.. sendkeys is also another library that could be helpfull to send key press's to a program...Leave a comment:
-
I saw the gui builder for sale (you know the stick figure with the big nose like mine) but I don't have the cash for such things. I was hopeing for a simple way to changing the generated code over to the format I want. What I would realy like is a way to change direction while the display is being built. I don't care if I use a sizer or another method. Using excel as an alternative method looks intresting but it isn't what I was after.
...Leave a comment:
-
wx formating with grid sizers
What can I do to this code to keep the layout from looking line
button button button grid
or worse
button
button
button
grid
I need something like
grid
button button button
I was trying to use the splitter example but couldn't get it to work. I am using python 2.5 and the latest wxwindows. Thanks for the help in advance
... -
Here is what I was wanting to split in two (I don't know that I need a splitter but I have buttons that go one under the other and when I change that I get wierd glitches)
...Code:): wx.Frame.__init__(self, parent, -1, "Dex Tracker Score Editor", size=(640,480)) p = wx.Panel(self, -1, style=0) self.grid = WordGrid(p, log) b = wx.Button(p, -1, "Save Grid")Leave a comment:
-
to extend and revise it is in the run test code. When I try to cut and paste this where would I get the value from??Leave a comment:
-
trouble stealing wx.splitter code
I am trying to steal this code from the wxpython demo but it appears that mb comes from nowhere and I am having errors because of it
...Code:import wx #--------------------------------------------------------------------------- class MySplitter(wx.SplitterWindow): def __init__(self, parent, ID, log): wx.SplitterWindow.__init__(self, parent, ID, -
I had asked somewhere else and they came up with this
data = sys2.stdin.read lines()
stdin is output to the consul (spelling) so I removed that and
outfile.writeli ne(data[linenumber])
I changed that to
outfile.write(d ata[linenumber])
It would seem like a bug in python to have two files as zero byte when it is only the code for one of them that is messed up....Leave a comment:
-
I added this
infile.close()
infile2.close()
outfile.close()
outfile2.close( )
This probily stops problems that I am not having yet. I noticed that when the code that has the readlines in it is first that the second file does not appear to opened at all. but I am having trouble with both sections.
https://sourceforge.net/projects/dex-tracker...Leave a comment:
-
I don't see it opening twice. One ends in .orc and one in .sco (unless I am completly missing it). Plus I am having the trouble with both temp.orc and temp.sco being created as zero byte files....Leave a comment:
-
code generator problem
I am trying to write a simple code generator to play part of a csound file but I am writing zero byte files out to the disk. It appears the filename is coming through o.k.
...Code:import sys as sys2 import os as os2 def playscoreinrange(from_file, fromline, toline): "untested way to play a series of lines from a orc, sco combination line 14 may not be correct" print(from_file) -
I use spe, idle and boa constructor. I also use pype sometimes. I would be unhappy unless I had all three on my system, The only code generator I use is boa constructor, I just don't understand the other wxpython one and have no use for it.Leave a comment:
-
Never mind I found the answer to that. os.path.basenam e(filename)...Leave a comment:
-
split question
This is probily an easy question but I seem to be having trouble splitting on the \. I have tried """ (triple quotes) and that dosn't work, I tried '\\' but that was just guessing. my .bat file generates as
csound C:\Python24\Lib \site-packages\boa-constructor\tes t of snake\csd files\c.z.rober tson-praleck_brome.c sd
and what I need is just
csound c.z.robertson-praleck_brome.c sd
The...
No activity results to display
Show More
Leave a comment: