16,012,198 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by RadXPictures (Top 34 by date)
RadXPictures
11-Jul-13 17:37pm
View
Thanks. But, for some reason, if I put that line into my .cpp, I can no longer access it from my other forms. It's the header file that makes it global, right? Because you have to use #include to gain access to the namespaces, classes, and functions in the cpp file.
RadXPictures
11-Jul-13 17:35pm
View
Well, all I'm trying to do is be able to execute a function in MainWindow from NewForm, and following the approach MainWindow *mw = qobject_cast<mainwindow*>(this->parentWidget()->parentWidget()) didn't seem to work for me. NewForm is a widget, so I figured I would declare a global variable and assign my open MainWindow to it before the widget is printed to the screen. What other option do I have?
RadXPictures
27-Jun-13 17:15pm
View
Omg thank you! I had never heard of white-space before (third link) and after placing that in html {} brackets, it works! Thanks!
RadXPictures
27-Jun-13 17:03pm
View
Umm.. those two lines just appeared vertically..
RadXPictures
24-Jun-13 15:18pm
View
When I try debugging I get a "debugger not set up" error. Any idea?
RadXPictures
23-Jun-13 22:28pm
View
Sorry, probably should have posted it, but I already had:
#include "customctrl.h"
#include "ui_customctrl.h"
customctrl::customctrl(QWidget *parent) :
QWidget(parent),
ui(new Ui::customctrl)
{
ui->setupUi(this);
}
customctrl::~customctrl()
{
delete ui;
}
It was auto-generated.
RadXPictures
19-Jun-13 11:31am
View
^ it would at least give you a more specific error description
RadXPictures
19-Jun-13 11:30am
View
It may have to do with HTML header files (just a thought). Unfortunately I don't have much experience there, so you would have to investigate that. All I know is you can add headers via WebClient.Headers.Add(). You could also try putting your code in a Try/Catch block:
Try
{
//your code
}
Catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
RadXPictures
18-Jun-13 22:56pm
View
Buddy, you have to provide a little more info than that. I noticed you tagged the post C#, Javascript, and ASP .NET, all of which are very different things. I've never dabbled in ASP.NET much, but I know for a FACT that there is a C# and Javascript FB API, both of which operate differently. Are you making a website? A desktop app? I need more info.
And also, the way it works with Facebook's graph API (that's the name of their central API, which is wrapped differently for different languages), in any sense, you cannot simply get someone's info by just their email. How it works, regardless of the language you use, is you first create an app at developer.facebook.com. It will then give you an app secret and an app id, which you use to generate a unique url. A window must open up, redirecting to said url, and the window will prompt the user to log in to Facebook and approve the transfer of their information. Then, the webpage will return an access token which you can use to get their information.
I would suggest first looking at developer.facebook.com and reading the documentation. If you still can't figure it out, then come back to the forums.
RadXPictures
17-Jun-13 15:43pm
View
Thanks! It worked... but, after running into a few additional problems, I found that simply adding "import "./com" worked perfectly. Thanks though!
RadXPictures
11-Jun-13 22:22pm
View
I followed this tutorial: http://docs.python.org/2/extending/embedding.html. My code is identical, except I replaced the args[] with actual string variable names.
RadXPictures
9-Jun-13 21:24pm
View
I got the following error:
not of the expected type.
at System.StubHelpers.ValueClassMarshaler.ConvertToNative(IntPtr dst, IntPtr src, IntPtr pMT, CleanupWorkList& pCleanupWorkList)
at Win32.Win32.GetMenuItemInfo(IntPtr hMenu, UInt32 uItem, Boolean fByPosition, MENUITEMINFO& lpmii)
at Win32.Menus.getMenuItems(IntPtr hWnd) in E:\My Documents\Visual Studio 2010\Projects\NewShell\Win32\Menus.cs:line 35System.Runtime.InteropServices.SafeArrayTypeMismatchException: Specified array was not of the expected type.
at System.StubHelpers.ValueClassMarshaler.ConvertToNative(IntPtr dst, IntPtr src, IntPtr pMT, CleanupWorkList& pCleanupWorkList)
at Win32.Win32.GetMenuItemInfo(IntPtr hMenu, UInt32 uItem, Boolean fByPosition, MENUITEMINFO& lpmii)
at Win32.Menus.getMenuItems(IntPtr hWnd) in E:\My Documents\Visual Studio 2010\Projects\NewShell\Win32\Menus.cs:line 35System.Runtime.InteropServices.SafeArrayTypeMismatchException: Specified array was not of the expected type.
at System.StubHelpers.ValueClassMarshaler.ConvertToA first chance exception of type 'System.Runtime.InteropServices.SafeArrayTypeMismatchException' occurred in Win32.dll
Native(IntPtr dst, IntPtr src, IntPtr pMT, CleanupWorkList& pCleanupWorkList)
at Win32.Win32.GetMenuItemInfo(IntPtr hMenu, UInt32 uItem, Boolean fByPosition, MENUITEMINFO& lpmii)
at Win32.Menus.getMenuItems(IntPtr hWnd) in E:\My Documents\Visual Studio 2010\Projects\NewShell\Win32\Menus.cs:line 35System.Runtime.InteropServices.SafeArrayTypeMismatchException: Specified array was not of the expected type.
at System.StubHelpers.ValueClassMarshaler.ConvertToNative(IntPtr dst, IntPtr src, IntPtr pMT, CleanupWorkList& pCleanupWorkList)
at Win32.Win32.GetMenuItemInfo(IntPtr hMenu, UInt32 uItem, Boolean fByPosition, MENUITEMINFO& lpmii)
at Win32.Menus.getMenuItems(IntPtr hWnd) in E:\My Documents\Visual Studio 2010\Projects\NewShell\Win32\Menus.cs:line 35The thread '<no name="">' (0x1a30) has exited with code 0 (0x0).
I think it has to do with the fact that GetMenuItemInfo is expecting a string for dwTypeData, not a char[]
RadXPictures
9-Jun-13 18:10pm
View
I just tried this code, and it works! Thanks. GetMenuItemInfo returns true. My only concern is, instead of retrieving the actual string value of the menu item, dwTypeData always returns "System.Char[]". The only modification I had to make to your code was adding a ".ToString()" after your szString assignment to dwTypeData, because according to my struct declaration, dwTypeData is type "string" instead of "char[]". Would this have caused a problem? I based my original post off some PInvoke.Net sample code (http://pinvoke.net/default.aspx/user32/GetMenuItemInfo.html) if it's any help.
RadXPictures
8-Jun-13 23:42pm
View
Do you really think if I hadn't googled already I would be posting on here? I've searched everywhere. This was my last resort. I need help guys.
RadXPictures
7-Jun-13 20:00pm
View
I don't care... I just need to know how this is done. ASAP.
RadXPictures
2-Jun-13 22:43pm
View
I checked these out, but I'm really looking for these calls to be made when a window maximize
RadXPictures
2-Jun-13 22:43pm
View
Deleted
I checked these out, but I'm really looking for these calls to be made when a window maximizes.
RadXPictures
2-Jun-13 22:42pm
View
Okay, okay. I should probably specify a few things.
1. I am trying to change the minimum/maximum size of EXTERNAL apps (aka not my own application... ones that aren't even .NET for that matter)
2. I am trying to build an alternative shell for Windows specifically, so multiplatform compatible is not an issue for me. I don't care if it's Windows specific. It should be.
RadXPictures
2-Jun-13 18:52pm
View
I already visited that page... None of the examples actual reference specific pinvoke calls. I guess I should have been more specific... I know it is called using the WindowProc function, and I have yet to find any example code using this or related methods
RadXPictures
2-Jun-13 16:55pm
View
I've investigated both of these and realized that they're both variables, not actual functions. Which functions would I pair these with? Could you point me in the right direction?
RadXPictures
10-May-13 10:40am
View
I appreciate the help Richard.. unfortunately, adding the != null conditional doesn't seem to correct the problem. When you referred to "two minutes with the debugger".. where in Eclipse may I find that? The only debugger I've been using is the console..
RadXPictures
24-Apr-13 5:38am
View
I would just like to access the information pertaining to the files. Perhaps read some MP3 metadata off them as well.
RadXPictures
26-Mar-13 11:17am
View
I should have mentioned that, as strange as this code is, I cannot use (sizeof(x)/sizeof(x[0])) because I am trying to determine the length of an array that acts as a argument to a function. Doing so returns the static size of a generic char* array and will not display the actual size of the array because it is passed at runtime, and the code determines the size before the parameter is passed to the function. I tried everything, and this seemed to be the only working solution. If anyone can contribute a better idea, I would be happy to hear it. Thanks for your help.
RadXPictures
19-Mar-13 15:17pm
View
Thanks! I knew it had to be a simple solution for a pretty stupid question.. So thank you!
RadXPictures
16-Mar-13 22:19pm
View
I think I know what the problem is... because my XML file is from an online source, it isn't reading it correctly, therefore never parsing, therefore throwing errors... I think I'm gonna try a more web-friendly language, like Python, simply because I can. Thanks for the help anyway though.
RadXPictures
14-Mar-13 14:00pm
View
I'm sorry, but I'm fairly new to C++, but how exactly would I implement the prolog? What is a prolog?
RadXPictures
14-Mar-13 11:58am
View
I just posted it..
RadXPictures
14-Mar-13 11:58am
View
Deleted
I just posted it...
RadXPictures
12-Mar-13 11:59am
View
Oh... and also, the debugger seems to say something about m_name and m_value in the xml_node being bad pointers (bad ptr)
RadXPictures
12-Mar-13 11:55am
View
I would imagine the XML is valid because I originally had parsed it using Linq XDocument in C# and it worked fine. But for cross-platform purposes I switched to C++... Nothing outputs when the exception is thrown. It immediately returns to Visual Studio, opens up rapidxml.cpp (line 1409) and shows a message box displaying the error. I then have to manually stop the debugger and return to the coding window.
RadXPictures
10-Mar-13 21:59pm
View
How do you do it then? I can't seem to find any place where you can reference libs in a static library application.
RadXPictures
10-Mar-13 21:59pm
View
Deleted
How do you do it then? I can't seem to find any place where you can reference libs in a static library application.
RadXPictures
10-Mar-13 21:55pm
View
Just something to consider.. as stated above.. I can't add *.lib files to my project because my project is attempting to generate a *.lib file. There are no linker properties in the properties box.
RadXPictures
10-Mar-13 21:48pm
View
Sorry bout the comment... I come from a .NET background so some of my terminology may be off. Anyway, the thing is, I don't get these errors when I don't implement a default class constructor and they didn't exist before I tried creating a class. Which I don't understand.. maybe you could shed some light on. Also, I can't find the linker properties in the configuration properties, most likely because I am trying to create a *.lib file with this class. So not sure what to do.
Show More