Hello, I am trying to call an activeX method from JScript in IE6. The method we are trying to call takes two arguments: one long which is the dimension of the array (of bytes) passed as the second parameter. In some cases the size can be zero and the array undefined and we are in that case. How can I call this method from my JScript code? I tried obj."method(0, null);" but I get an incompatible type error. I also tried using Scripting.Dictionary object but to no avail. Has anyone a tip for this ? Thanks,
Nicolas Bonamy
Posts
-
Calling activeX method with array -
Handle left-click on popup menuNo sorry this is not my point. This will not add a notification if the user clicks on the "Popup" item. This will only change the behavior when clicking on "real" menu items.
-
Handle left-click on popup menuHello, I have been searching for this but can't find any answer. I would like my app to be able to handle left-click on popup menu (not menu items). Suppose my menu is: Item 1 Popup > PopupItem1 PopupItem2 Item2 Everybody known how to handle left-click on Item1, Item2, PopupIem1 and PopupItem2. But how can one detect a left-click on the "Popup" item? Is this feasible with a regular CMenu instance? Thanks!
-
Executing a program with argumentsDavid, thanks for suggesting. The problem came from the trailing whitespace at the end of fnames. I removed it and it workls! Thanks again, Nicolas
-
Executing a program with argumentsSomething like this:
// build arguments string fnames; list sel = GetSelection(); for (list::iterator it = sel.begin(); it != sel.end(); ++it) fnames += "\"" + *it + "\" "; // quotes strEditor = "\"" + strEditor + "\""; strDir= "\"" + strDir+ "\""; // run the app ShellExecute(NULL, "open", strEditor.c_str(), fnames.c_str(), strDir.c_str());
This works with latest version of Photoshop for instance (6 and later) and Paint Shop Pro but NOT with Photoshop LE 5 and Photoshop Deluxe. CreateProcess and ShellExecuteEx fail the same way: the app is correctly launched but it can't find the files I am passing. Regards, Nicolas -
Executing a program with argumentsHello, I am trying launching an application telling it to open a document. I build a command line surrounding the program name and each document with quotes and then use ShellExec to process. This works fine with all applications except old Adobe programs (like PhotoDeluxe or Photoshop LE). So I tried CreateProcess instead it does not work either. Tried ShellExecuteEx same error: the program does not find the document. If I take the command line I am builing and paste it in a Command Prompt it works. Other programs are able to run the application passing it a file to open. So my question is: what other way can I use to run that application telling it to open an application... Should I revert to _exec or is there something else? Regards, Nicolas
-
CListCtrl custom RectTrackerHello, does anyone know how to customize the look of the CListCtrl RectTracker? I want it to look like the Windows XP Explorer RectTracker and still reuse a max of stuff already implemented in the standard RectTracker provided by CListCtrl (like dynamic selection and partial invalidates)? Regards, Nicolas
-
Question about run at start upUse the same key but under HKEY_CURRENT_USER. Regards
-
Where to find common toolbar xp icons?Hello I am looking for a source to get the common toolbar xp icons as described here[^]. I am really looking for the source files because I want to use them with alpha blending so I really need the transparency channel and it won't work if I just screencap and crop. I have been looking for them in systems DLL without luck. Does anyone know? Regards, Nicolas
-
Converting an icon into a bitmapOkay tested it but it appears that the bitmaps returned are wrong. Basically I get my icon from the system image list in where the icons are 32 bit with alpha. When I get them I get a 256 color version but the conversion is wrong: some parts of the mask that are gray become black where as in the icon the matching pixel gets black also. So I get black. What I need now is to force the extraction in 256 colors. The problem is that I get a handle to an icon in the system image list and I do not know where this icon is located on disk so I can't really extract it from the .ico file. Anyone?
-
Converting an icon into a bitmapDoes your stuff work? My code is just around 10 lines of code where I build a DC, select an empty bitmap into, draw the icon with DrawIconEx in DI_NORMAL mode and that's it. Do you do something similar?
-
Converting an icon into a bitmapIain, I saw this one and definitly wanted to take a look at it... Thanks for the infor. Regards
-
Converting an icon into a bitmapHello, I need to convert icons to bitmaps. I have written something that works OK on 2000 and other systems but that fail on XP: the transparent color is replaced by black instead of being well transparent. Maybe it is related to getting a "too many color" icon were the 256 colors version is enough for what I am doing... Does anyone has something to suggest? Regards
-
Printing with fopen, and f*()LPT stuff designs a printer connected to the parallel port. I doubt this will work with a USB printer or a network printer.
-
Localization ToolI posted this in the VC++ forum but this one seems more appropriate so I am posting this again here: Hello, I am a shareware author that some people localize to different localization. I use the resource DLL option and needed an easy tool for my translators to produce a localized DLL. Smart Translator (available in Free Tools on CP) was almost what I wanted. One problem: it was written using BCG. So I took the source code, ported the interface to MFC, ported some of the features (not all) and added many more. Finally the tool is working kind of correctly. But there are still bugs to fix! My problem is that my real shareware takes me a lot of time so I have not much time to spend on this updated Smart Translator. So I am looking for someone who is willing to take over the task to provide a great free localization tool to the community. I already contacted the author of Smart Translator and he has no problem that the someone takes the code and makes it evolve so you do not have to worry about that... So if you fell like seriously taking this task over and keeping the stuff free then reply in this thread or contact me by mail: info@nabocorp.com. Regards, nabocorp http://www.nabocorp.com
-
Localization toolAnd so? I also work for a software company and code my freeware/shareware on a small part of my free time. I guess a lot of people do the same...
-
How do u pass parameters to OnKillfocus...Where the value of that parameter should come from?
-
How could I Burn something into the CD?Take a look at this: http://cdrdao.sourceforge.net/
-
Localization toolHello, I am a shareware author that some people localize to different localization. I use the resource DLL option and needed an easy tool for my translators to produce a localized DLL. Smart Translator (available in Free Tools on CP) was almost what I wanted. One problem: it was written using BCG. So I took the source code, ported the interface to MFC, ported some of the features (not all) and added many more. Finally the tool is working kind of correctly. But there are still bugs to fix! My problem is that my real shareware takes me a lot of time so I have not much time to spend on this updated Smart Translator. So I am looking for someone who is willing to take over the task to provide a great free localization tool to the community. I already contacted the author of Smart Translator and he has no problem that the someone takes the code and makes it evolve so you do not have to worry about that... So if you fell like seriously taking this task over and keeping the stuff free then reply in this thread or contact me by mail: info@nabocorp.com. Regards, nabocorp http://www.nabocorp.com