Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. dEVooXiAm

    Function pointer to 'extern C'

    C allowed to make simple function pointers (ie without specifying the exact amount and type of parameters), but then you had to make sure you call it correctly through a pointer, so you dont mess the stack up. C++ does a better type-checking so you're not allowed to do the old way anymore...
  2. dEVooXiAm

    Dialog Edit Control

    Have you already created a class for the dialog? ------------------ When you do it, do it right.
  3. dEVooXiAm

    User control problem

    in JScript you get aaa as a variable, not text, so change the line into the following: "ShowAlert('" + this.str +"'); " btw, use [ code ], [ /code ] tags when posting code. ------------------ When you do it, do it right.
  4. dEVooXiAm

    DWORD datatype

    cpjust - you just proved him wrong. And I asked him to prove himself right. short is 16bits.. at least on Microsoft platforms.. be it 16bit, 32bit or 64bit platforms or compilers. ------------------ When you do it, do it right.
  5. dEVooXiAm

    c++ DLL get parameters

    First of all, can you imagen passing parameters to a DLL? I dont, because it's not an application, it's just a library (Dynamically Linked Library or smth like that). So, you either add an export function that you pass parameters through, or you add a public class method to do that...
  6. dEVooXiAm

    DWORD datatype

    xwb, can you prove this "If you use the 32-bit Microsoft compilers, a WORD and DWORD are the same size!!!" ? as far as I've checked, WORD is always unsigned short, which is 16bit, and never 32bit.. ------------------ When you do it, do it right.
  7. dEVooXiAm

    Edit Item in DropDownList

    That's just because in C# combobox lists objects, not strings. Kinda stupid looking for those coming from C++ to be honest. ------------------ When you do it, do it right.
  8. dEVooXiAm

    when is ComboBox.SelectedValue not null?

    The way I'd use it ((ValuePair) comboBox1.SelectedItem).KeyValue = newVal; ------------------ When you do it, do it right.
  9. dEVooXiAm

    Ambient Properties

    Properties such as WHAT? such as called by SOMEONE Ambient? how about sharing an example of what you need to understand? ------------------ When you do it, do it right.
  10. dEVooXiAm

    defining a 10-bit data type

    if you define the aim of this, maybe we could be better at explaining you why you should go with standard length data types? ------------------ When you do it, do it right.
  11. dEVooXiAm

    D3DX9dt.lib AND LIBCP.LIB

    if I understand this correctly, you have Sample project files still refering to files named after older DirectX version. So all you have to do, is rename the library references in your Sample project file to new file names, provided with new DirectX version. ------------------ When you do it...
  12. dEVooXiAm

    How to create a DLL that creates txt file...

    You either need to define the function as: _declspec(dllexport) void CreateFile().... .. or define the export entry in .DEF file to be able to access the function from outside. ------------------ When you do it, do it right.
  13. dEVooXiAm

    delete block from file

    Why not read line by line or block by block (saving memory that way) from the original file, and write only the needed lines or blocks into new file. Then delete original file, and rename the new file.. Seems a better decision to me, than a filepos jumping or reading a big chunk of file data...
  14. dEVooXiAm

    Alias value for Combobox items

    ComboBoxes are not dumb.. and you dont need any hash tables to have more data on them. As you might have already noticed, ComboBox.Items.Add requires an object variable, NOT just a string. This means you can add actual objects to the list, whose structure is up to you. Just dont forget to set...
  15. dEVooXiAm

    public class variable in other project

    It much depends on what kind of projects you have. If you want to pass something between 2 processes (EXE application for example), you'll need to use on of those many interprocess communication methods (simplest being a file or registry entry). If you need to communicate between EXE and DLL...
  16. dEVooXiAm

    threading

    Timer class is for timed jobs.. I dont see any timed jobs in this problem. Use System.Threading.Thread class to create "worker" threads that deal with each of the IP address. The logic would be to put the "working" part, i.e. the code inside the loop into thread function and let it run in...
  17. dEVooXiAm

    Can I delete an object within itself?

    To be honest, what is the problem of moving whole memory allocation to Initialize type of function? Use constructors just to set everything to default values, and perform allocation in a seperate function - you'll be off with current problems in no time. ------------------ When you do it, do it...
  18. dEVooXiAm

    HttpWebRequest and querystrings

    jmeckley, @ is used to ignore string escape character \. There's nothing it could help in the described situation. ------------------ When you do it, do it right.
  19. dEVooXiAm

    Bitmaps in raw arrays

    Create a BITMAP object out from your pixel data, associate it with the DeviceContext and BitBlt it into your destination DC. ------------------ When you do it, do it right.
  20. dEVooXiAm

    programinig form wizard

    I do it like this: 1. Create the main form for all wizard steps. It contains the back, next, cancel buttons and if needed, a panel for controls. 2. Create a seperate custom control for each step of wizard. 3. By pressing Back, Next, just change the custom control in the panel...

Part and Inventory Search

Back
Top