|
Someone please delete Raffi's post.
And Raffi, please change your signature (if it is indeed your sig - if not, my apologies).
Jon Sagara
"I am in a race. I'm weening!"
|
|
|
|
|
It wont let me delete it or modify it cause it says my pw is invalid. I didn't mean to do it. Im really really sorry.
-Raffi, no longer uses an html sig.
|
|
|
|
|
-Raffi, no longer uses an html sig.
Sniff. That's so sad.
|
|
|
|
|
Man, what have done with your formatting? The whole window appears like gone mad!
As for your question, angle brackets are reserved for standard libraries (be it standard as native to C/C++ or standard relative to a vendor, like <windows.h> .)
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I know this is a C++ forum.
I don't see a javascript forum here at codeproject, and I like this site alot. I looked through the javascript articles, but don't see an answer to this, probabl simple, question.
If someone would be willing and able to answer this question, I would appreciate it.
I would like to be able to change the "value" of a form field based on the contents of a variable. Like, for example, an element of an array.
Example form element:
I don't know how to have "value" be set to the contents of a variable. What I have there doesn't work.
thanks for any help you can provide.
craigk
dakotaknut@yahoo.com
|
|
|
|
|
Try this:
<form name="form1">
<input type="textbox" readonly name="phototitle01"
Value=""
STYLE="background-color:#ecd4b4;">
</form>
<script language="javascript">
document.form1.phototitle01.value=myVarArray[0]
</script>
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks much!
I kind of stumbled into this, (in a way), a little bit ago. I ended up deciding to try using the
|
|
|
|
|
I'm kinda surprised you didn't find anything about this on the net. There are tons of sites devoted to JavaScript with myriads of snippets and tutorials. So many of them, programming in JavaScript is usually just a matter of copying and pasting.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Yeah, maybe I didn't look hard enough for this specific answer.
It seemed to me that most examples were directed at more interesting "problems".
I did though run across a cooler solution to what I wanted to do. I'm an "old guy" software developer, but I'm not a javascript, or an HTML guy yet. I had "picked" a solution to what I wanted to do, because it was the only way I could think to do it.
But the div solution appears to be prettier. So I'm heading down that trail now. Although, it is a little annoying that Netscape has to do some of this stuff seemingly so clunky. Especially Netscape 4.
Y'all on codeproject though are cool because you take the time to answer simple stuff like this. THANKS MUCH!
craigk
craigk
|
|
|
|
|
In IE, when you got to Tools | Internet Options, then select the Advanced tab, you have a control with displays a list of item with children, along with checkboxes and radios. How do you do that? Is that a control that comes with IE?
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
Check PJ Naughter's CTreeOptionsCtrl.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Tx exactly what I needed.
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
Hi.
I am in the process of implementing a feature for a program that involves saving and restoring expendable data. For example, let say the program organizes a list of names. I would like to save the names when the program closes and load the names when the program starts.
What is the maximum data size that a program can save and restore via registry?
I find saving and restoring data via registry is quicker and easier than saving the data to a file and reading the data back into memory.
Thanks,
Kuphryn
|
|
|
|
|
There's no predefined limit as to how much data you can store in the registry. If your list of names is not huge, I guess the registry is a fine place to save it --plus you obtain added benefits like per-user configuration (if you select a key under HKEY_CURRENT_USR .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
|
You can run out of allocated registry space on Windows NT and get error messages. That might be disconcerting to users.
|
|
|
|
|
The registry is non-indexed, so the bigger it gets, the slower it gets. That may be a problem if you plan to save and restore a lot of data.
|
|
|
|
|
Thanks.
I will implement a separate database file and not use the registry. I think going with a file is safer and more flexible in the long run.
Kuphryn
|
|
|
|
|
Hi all,
I am having a hard time finding a tutorial of how to make my own plugin framework. The problem I have is as such: I want to open the COM ports on my system and have Point of Sale data flow in (each on it's own thread). From there I want a dll for each POS that can be dynamically loaded to parse the data. I would like to make a generic framework so I can just put in new dll's and then enumerate them so the user can select the appropriate one. The application then uses a function that parses the data into the an expected format to be then inserted into SQL server.
Is there a way to load a class froma DLL? That way I could load a class into it's own address space. I suppose this would help make it thread safe?
Thanks in advance,
Clint
|
|
|
|
|
IMO, this is the perfect place for COM. in one of my apps, i have a fairly simple plug-in framework set up where users just drop plug-in DLLs into a specific folder and then choose the ones they want from a list. the whole system is based on COleDispatchDriver (which is essentially a wrapper to a COM object - you tell it which COM object to load and then call methods on the COM object through the wrapper). i've seen articles here that do pretty much the same thing i do.
here's a rough outline of how i do it:
1. the app scans a folder for DLLs
2. based on the name of each DLL it finds, it tries this:
COleDispatchDriver d;
d.CreateDispatch(csDLLName+".MyInterface");
3. if that worked, the DLL is added to the list of useable plugin DLLs
4. the user gets to look at the list and choose the plugin(s) that he wants to use
5. when processing time comes, the app does the same CreateDispatch call for each DLL then calls the appropriate methods on the object.
-c
Cheap oil. It's worth it!
|
|
|
|
|
hi all, i want to have an animation for my printing program. i want to display an animation while the file is printing.
i was reading about BitBlt but i don't really understand. I dont' want to draw programmatically i want to use my own animation gif file. but how am i suppose to post my gif file on the dialog. for bitmap pics i don't know how to create animation. from what i understood, i have to draw several pic and save with bmp extention. then load it, display it and replace it with next pic right. to me sound so easy, but don't know what to do.
ok loading, i think i have to do: CBitmap::LoadBitmap("c:\mypic.bmp");
but how to display on certain place like buttons i can place anywhere on the dialog.
so no doubt that i can replace or do any animation since i can't even display one bmp on dialog i want.
do you have idea or any similar project?
|
|
|
|
|
|
yes, and then send $3500 to Unisys for a license to use GIF in your application.
-c
Cheap oil. It's worth it!
|
|
|
|
|
It is my understanding that non-profit non-commercial apps can freely use GIF technology, which may suit the guy's needs. I'm sure you already know this, but here's a link stating the fact: Unisys Clarifies Policy Regarding Patent Use in On-Line Service Offerings. The key paragraph reads:
Unisys does not require licensing, or fees to be paid, for non-commercial, non-profit GIF-based applications, including those for use on the on-line services.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
from the Unisys LZW website:
In all cases, a written license agreement or statement signed by an authorized Unisys representative is required from Unisys for all use, sale or distribution of any software (including so-called "freeware") and/or hardware providing LZW conversion capability (for example, downloaded software used for creating/displaying GIF images). In certain cases, no license fees may be required, but this needs to be evidenced by a written agreement or written statement signed by an authorized Unisys representative.
-c
Cheap oil. It's worth it!
|
|
|
|