Yes, I've already done that. If you look at the results from your search you will see they are for mobile platforms. There are some hits which state they support desktop but when you go to their site (like Crisp Media) they in fact only support mobile. So if you know of any ad platforms which actually support Windows desktop, I'd like to know their names. Jeff
jeffb42
Posts
-
Do any ad platforms exist for desktop apps? -
Do any ad platforms exist for desktop apps?I've written a desktop app using C# WinForms and I'd like to try using ads to generate revenue. Ad libraries exist for mobile platforms but I haven't come across any which can be used for desktop applications. Do any exist? I looked into AdMob, and it looks like there was a point where there was a desktop SDK, but presently AdMob is mobile only. Any suggestions? Thanks, Jeff
-
Custom attributes aren't being displayedDarn. I thought that might be the case. Thanks for the reply and confirmation. Jeff
-
Custom attributes aren't being displayedI haven't created custom assembly attributes before, so maybe this isn't possible, but what I'd like to do is compile a custom assembly attribute and have it displayed to the user if they get the properties of the DLL. I'm using C#, VS2008, and .NET 3.5. I've added custom attributes to my DLL (ala http://www.codinghorror.com/blog/2004/11/custom-assemblyinfo-attributes.html[^]). It compiles and I've verified that the custom attributes are in the compiled assembly (with Reflector), but when I select the DLL and view the properties (via Windows Explorer) and then view the 'Details' tab, my custom properties aren't displayed. This is the first time Ive ventured into this area... is this possible? Or does Windows Server 2008 only display a list of known assembly attributes? Thanks, Jeff
-
CRegKey and Vista permissionsI'm trying to call CRegKey regKey; dwError = regKey.Create(HKEY_LOCAL_MACHINE, _T("...my path...")); ...but Create() is returning ERROR_ACCESS_DENIED. Thius is under Vista running as a user. Under XP it is fine. Is it possible to create a registy entry in KCLM? How can I grant it access? Thanks, Jeff
-
Auto build increment with C++?Thanks, but I'm looking for an incremental increase in the build number. Jeff
-
Auto build increment with C++?Yes, I already had searched but when I found lots of articles where a macro was written, I noticed that each article had lots comments about bugs, and instead of weeding through the umpteen articles I decided to post my question here to this forum. So, back to original question, what do people here use? (if you use one of the macros from one of the articles then please recommend it) And does Visual Studio have an auto-increment feature available to C++ like managed projects do? Thanks, Jeff
-
Auto build increment with C++?In the past I've worked on large teams and the build system we had in place would auto-increment the build number. At the moment I'm working on my own shareware project (written in C++, using VS2005) and I'd like to have Visual Studio auto-increment the build number for me (bonus points if it only increments the release version). I started to do some digging and I've read that Visual Studio has this feature with .NET projects, but I haven't read anywhere about this being available in C++ projects, so my questions are: * Does this exist for C++ project? * If so, what are the steps needed? * If not, are there any suggested tools or add-ins? What do some of the developers here use? Thanks, Jeff
-
PHP editor?Try Zend. (www.zend.com)
-
Some beginning COM linking and IID questionsThanks Vita! That was exactly what I was missing. Jeff
-
Some beginning COM linking and IID questionsI'm doing some COM work in C++ and I'm finding that my COM knowledge is a bit rusty (I used to use it somewhat frequently several years ago but not that much these days). I've built a simple COM DLL, and a simple MFC app that uses the COM DLL (and both were created by the VS Wizard), and both projects compile and work, but I had to do some tweaking in order to get the app to compile, and some things that I thought would have worked, didn't, so I have several COM related questions: 1. In my Test app (where I'm calling my COM component), I had started out of with: #import "MyComComponent.tlb" . . . CComPtr myClass; hr = myClass.CoCreateInstance(CLSID_MyClass); ...but I got errors saying that IMyClass, CLSID_MyClass, and IID_IMyClass were all undeclared. I thought importing the .TBL file brought those definitions in (what's going on here?). In the end, I ended up with: //#import "MyComComponent.tlb" // not needed at all #include "MyComComponent.h" // needed for IMyClass #include "MyComComponent_i.c" // needed for CLSID_MyClass and IID_IMyClass . . . CComPtr myClass; hr = myClass.CoCreateInstance(CLSID_MyClass); So what's going on? 2. If I just had: //#import "MyComComponent.tlb" #include "MyComComponent.h" ...I got a compile error saying: MainFrm.obj : error LNK2001: unresolved external symbol _CLSID_MyClass MainFrm.obj : error LNK2001: unresolved external symbol _IID_IMyClass I looked into this and several sources on the web said that it was an issue of #include needing to be included before a DEFINE_GUID(......) call, but I checked and initguid.h seems to be included correctly in both the DLL (in MyComComponent.cpp there's: #include "stdafx.h" #include "resource.h" #include #include "MyComComponent.h" . . . ...and correctly in the app. In the app there's: #include "stdafx.h" #include #include "MyTestApp.h" #include "MainFrm.h" #include #import "MyComComponent.tlb" #include "MyComComponent.h" So what is the correct way to include the COM component's definitions? This: #include "MyComComponent.h" #include "MyComComponent_i.c" ...looks odd (I don't recall seeing other COM code like this), and I thought all one had to do was add: #import "MyComComponent.tlb" Oh, and for the record, I am correctly linking in MyComComponent.lib. To repro, these are the steps I did: 1. Created a COM DLL (MyComComponent) w/VS's project wizard 2. Added a Class to the DL
-
Setting a timeout time for MarshalByRefObject?Thanks! I wasn't evening thinking about HttpClientChannel (and I wasn't aware of the configuration dictionary that's passed in), just MarshalByRefObject. Thanks, Jeff
-
Setting a timeout time for MarshalByRefObject?I have code along the lines of:
try
{
MarshalByRefObject obj = (MarshalByRefObject)RemotingServices.Connect(
typeof(MyClasss),
"http://MyServer:8080/MyClass");MyClass class = (MyClass)obj; class.CallSomeMethod(); return;
}
catch
{
// don't do anything
return;
}In the above code, if for whatever reason I can't connect to my server, an exception is thrown, I eat it, and move on. That's all expected. What I'd like to know is: Is it possible to set how long the timeout is before the remote request gives up? If the server is down, it can take a while before the exception is thrown - sometimes a minute, and I'd like to limit it to something low, like 10 seconds. Thanks, Jeff
-
How does one get the name of a variable which is passed to a method?That's cool, but I can't wait that long. For now what I'm going to do is something like: DumpObject(theObject, "theObject"); Thanks, Jeff
-
How does one get the name of a variable which is passed to a method?Luc Pattyn wrote:
MyObject theObject=new MyObject("Paul"); MyObject anotherReference=theObject; DumpObject(anotherReference); Now which name would you want to get? The only one you will be able to get is "Paul" provided it got stored somewhere *inside* the object.
With the above code, I'd want to get the string "anotherReference" inside of DumpObject(). If the code was DumpObject(theObject), I'd want to get the string "theObject" inside of DumpObject().
Luc Pattyn wrote:
It is however possible to get the name of the reference itself, using reflection.
Luc Pattyn wrote:
and through reflection should be able to get at its name.
That's the part I'm not able to do. Thanks though, Jeff
-
How does one get the name of a variable which is passed to a method?No, I can't assume that the object has a Name property, and I don't want to know the type (which I'd just do Type t = myObject.GetType()). I'm developing a (generic) debugging routine, so if I passed a variable named someObject: MyMethod(someObject); ...at runtime I want to get "someObject". I'd like to, and I'm sure there is a way, but I'm not seeing how to do it. Thanks though, Jeff
-
How does one get the name of a variable which is passed to a method?I wish to do something along the lines of: MyObject theObject = new MyObject(); DumpObject(theObject); ... elsewhere... public void DumpObject(Object obj) { string name = GetName(obj); // <<--- This is the part I'm missing System.Console.WriteLine("The name of the object is " + name); // this will print out: // "The name of the object is theObject" } I thought I could use reflection to get the name of the object but I'm not having any luck. I know this must be possible, but I'm stumped. TIA, Jeff
-
Any buttons styles to get a CButton to look like a toolbar button?I have a CDialogBar which has a few CButton objects in it. Each CButton object contains an icon (no text) and I'd like them to appear like the buttons in a CToolBar do (flat, not raised, until the mouse hovers over the button). I used Spy++ to look at the button styles of the buttons in the tool bar, but only the tool bar has a hwnd - none of the buttons do, so it looks like the tool bar might be owner-drawing the buttons itself. Is there a known set of button styles/window styles that one can set a CButton to and get it to appear like a button within a CToolBar does? I can always look and see if someone has built an owner drawn CButton class which emulates a CToolBar button, but if this functionality is already built into the system then I'd rather use what's already here. Thanks, Jeff
-
Embed a CToolBar within a CDialogBarI have a CDialogBar which uses a dialog resource, and the resource has some push buttons and a list box. I recently decided that I wanted the dialog bar to also have a tool bar at the top of its window. I've tried adding a CToolBar object, as well as tried adding a CToolBarCtrl, but I'm not able to get the tool bar to display. I tried the same technique with adding a CToolBar object to a CDialog, and that worked fine (as did CToolBarCtrl), but when I try the same code within a CDialogBar, nothing appears. Any suggestions? I've searched but I haven't found anything on the subject. I've found tips on how to add a CToolBar to a CDialog, but not how to add a CToolBar (or a CToolBarCtrl) to a CDialogBar. Thanks, Jeff
-
Any way to get all TreeNodes in a TreeView have the '+' symbol?Thanks Dave, I was hoping there was a bit easier way, but this sounds reasonable. Thanks, Jeff