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
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
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...
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...
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...
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...
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
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
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
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...
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...
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...
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...
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 "Client.h"
using namespace std;
int main ()
{
CObList myClientList;
POSITION pos;
CClient...
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...
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: "void * __cdecl...
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)...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.