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 Chriss Miller 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: *

  • Users: Bones3
  • Content: Threads
  • Order by date
  1. Bones3

    Expose C# Properties as COM Properties

    How do you do it? You obviously can't place a property in an interface exposed for COM interop, and the following doesn't work either: public interface IWhatever { int nElements { get; } } -Bones
  2. Bones3

    Expose C# Properties as COM Properties

    How do you expose C# properties as COM properties for a COM .dll project? You obviously can't place a property in an interface exposed for COM interop, and the following doesn't work either: public interface IWhatever { int nElements { get; } } -Bones
  3. Bones3

    Binary string of floats over socket

    Would anyone know where to start troubleshooting this? I'm sending many single-precision floating point numbers over a socket connection, and every once in a great while a number will come by that appears to take up 5 bytes. Of course all the normal ones take up 4 bytes. The reason this appears...
  4. Bones3

    floating point format conversion

    I'm getting a message from a server which has an intel dual core processor and Windows. The message is supposed to be a bunch of binary single-precision floating point numbers. The size of the numbers appear to be the same as the Java float, but the format does not seem to be the same. I used...
  5. Bones3

    JavaScript and Directory Paths

    I am having issues with the Mozilla development platform and am getting tired of XPCOM. To simplify this mess I want to place the path to the program installation directory in a JavaScript string. I know that JavaScript is not supposed to be able call the OS to get file information for security...
  6. Bones3

    Using -fill with a frame

    So... I have this cute little listbox packed at the bottom of my gui. listbox .transferBuffer -height 6 pack .transferBuffer -side bottom -fill x This worked great, until I had this crazy idea that adding a scrollbar would make the users happy. frame .buffer listbox .buffer.transferBuffer...
  7. Bones3

    The Close Window Button (x)

    Is there a way for the programmer to control what happens when the user clicks the main window's close button (the x at the top right)? Suppose, for example, I would like to perform some cleanup operations before calling exit. Or perhaps I would like to prompt the user to save something. -Bones
  8. Bones3

    DirectX 9.0c SDK Summer 2004 Update

    New DirectX 9 update! http://www.microsoft.com/downloads/details.aspx?FamilyID=fd044a42-9912-42a3-9a9e-d857199f888e&displaylang=en -Bones
  9. Bones3

    XFile Exporter (Direct3D) for Maya 6.0

    The DirectX SDK summer 2003 extras has plugins for Maya 5.0 and less, but obviously none for 6.0 since it wasn't out yet. Does anyone know of someone who has a mesh exporter or even converter for Maya 6? My graphics friend uses Maya 6. -Bones
  10. Bones3

    Opening Text File

    Is there a way to open a .txt file in notepad when recieving an event in my program? The text file will be stored in the same directory as my exe. I want to open the text file through a main menu item handler function, such as: CChildView::OnHelpReadMe() { // open .txt file } -Bones
  11. Bones3

    Getting variables from a window

    How can I interact with variables in my CChildView class from other objects? I have tried AfxGetMainWnd()->int GetVariable(), which compiled fine, but does not return the correct number. While debugging I noticed that somehow it changed from 5 to 0 once CChildView::GetVariable was called. I...
  12. Bones3

    Discussion on window painting

    In the book I am learning MFC from (Introduction to MFC Programming with Visual C++) I was given an exercise to discuss the following general discussion question: "As far as moving windows around on the desktop, why doesn't windows just save a bitmap of what is covered?" I might try...
  13. Bones3

    I am having trouble getting the fol

    I am having trouble getting the following to do what I want it to do: rectList is a CObList containing objects that are of my class CMyRect. r is a member of CMyRect, and is a CRect. In my application, I have several rectangles dispayed, many overlapping each other. What I want this application...
  14. Bones3

    How is the % processed?

    After code with the modulus operator (%) is compiled how does the CPU process it? I mean does it have some sort of efficient way of makeing x % y take up less processing power than if we just put it in a loop that calcualtes it? Same thing with powers. If we could (I don't believe we can) do...
  15. Bones3

    CFile troubles

    I am having trouble getting the file either to dump data into the CObList or recieve data properly from the list, I cannot tell which. #include <iostream> #include <afxwin.h> #include &quot;Client.h&quot; using namespace std; int main () { CObList myClientList; POSITION pos; CClient...
  16. Bones3

    DWORD to _int64?

    First of all, hello everyone again. I am making a win32 MFC console program that is supposed to use a timer. (kind of like an alarm clock) The constructor in my CTimer class currently goes like this: CTimer::CTimer(_int64 days, _int64 hours, _int64 minutes, _int64 seconds) { seconds = seconds...
  17. Bones3

    Problem Compiling MFC in a Static Library

    I am trying to compile a console application so that it will work on more than just my computer. When it is compiled using MFC in a shared DLL, it compiles and runs without errors. But when I switch it to use MFC in a static library I get two errors: 1 - error LNK2005: &quot;void * __cdecl...
  18. Bones3

    scrolling away!

    Hi everyone I have a noob question regarding a windows form application I am working on in Visual C++ .net. I want to make a form that has a lot of text and some pictures, and I want the whole thing to be scrollable in case the user makes the window smaller. (kindof like this web-page im MSIE)...
  19. Bones3

    adding a second windows form

    I am building my first windows form and am having trouble finding a good place to grab the basics. I have managed to figure out everything nicely so far except I don't know what to type in when I want a button or menuItem to open up another form. For example if I wanted MenuItemHelp to open up a...

Part and Inventory Search

Back
Top