I am working c++ in Netbeans in mac,it was properly working but now when i create a new QtApplication and create a QtForm it gives error
unexpected token: :
in editor, and the project is running and building properly can any one tell me what is the issue because i am unable to get my class members through object everything is underlined red
Related
I am trying to creat "UserControl" then add it to "MainForm" in C++/CLI. But i found only one solution to add "UserControl" to "MainForm" via creating project as a Class Library.dll ...
But in this case I can't Target Startup Item to Main form to Build .exe and V.S gives an error normally when trying to build "ClassLibrary" . Any Solution for it? ....Error Image
Hi all to start off with:
Using Gdal compiled with Xerces
Coding in C++ with the QT Creator version 5.4.1
So my problem is im trying to use Gdal to create my own Esri shapefile, I get a strange runtime error when trying to add multiple fields
Example:
// Create a ogr feeature
OGRFeature* ogr_feature;
// Set a bunch of fields
ogr_feature->SetField("Blah","Blah");
ogr_feature->SetField("Foo","Foo");
ogr_feature->SetField("Bar","Bar");
ogr_feature->SetField("Test","Test");
When I run the program once it hits this part it gives out this error message:
Error :1 Invalid Index -1
I'm not too sure what's causing this. I've tried taking out all but 1 and thats fine doesnt give me any errors. But more than 1 it throws that error.
Anyone know how to fix this/ why its doing it?
I have created a project on carbide c++ and I am getting an error
sbs returned with exit value = 1
I didn't make any changes on the code that carbide created.I am just created and build the project its throws the error.
I googled the error and could not find any solution. Does anyone get this error code before ?
I was taking the same error...
Try to change the options of build...
That occurs when I was trying to compile using the armv5 instead of GCCE.
Change it and your problem could be resolved.
I´m new on symbian/carbide but it solved my problem!
I am busy converting by existing firebreath plugin here to use gpgme instead of making calls via the OS and the gpg binary.
I have managed to get the code to compile in windows using VS 2010 on a x32 system but after loading the plugin into chrome I can not access the npapi code at all. Even simple version calls fails.
When loading the plugin I get no visible errors but when using sawbuck log viewer for chrome I get the erorr messages below.
.\renderer\webplugin_delegate_proxy.cc 347 PluginMsg_Init returned false
..\plugins\npapi\webplugin_impl.cc 271 Couldn't initialize plug-in
I have tried to use my code with both firebreath 1.4 and 1.6 and neither versions work. After some simple debugging it seems that using any code provided by gpgme (whether its called or not) causes the plugin to break.
I came to this conclusion by doing the following.
Created a new project with firebreath (versions 1.4 and 1.6)
Add the gpgme.h headers to gmailGPGAPI.cpp and changed nothing else aside from adding the required reference paths to the project.
Build the project to create the dll (this generates the dll fine).
Replace the existing ddl in my project with the dll in step 2 and test it with the following piece of code
plugin = document.createElement('object'); plugin.id = 'plugin';
plugin.type = 'application/x-gmailtest';
document.body.appendChild(plugin);
console.log("my plugin returned: "+ plugin.valid);
console.log("my plugin returned: " + plugin.version);
This returns valid = true and the version returns what ever i set it to.
I then modified gmailGPGAPI.cpp to now return the gpg version by calling gpgme_check_version(NULL) in the version method. I used that method because its probably the simplest returning function that I could test with.
Build the plugin and copy dll to chrome extension as in step 3-4. The plugin builds fine again as expected.
Load the plugin and try to execute the code in step 4 at which point it now just returns undefined for any property or method i try to access on the plugin. No errors are printed to the console or anywhere else in chrome except for the error logged to sawbuck.
I have got no idea where to look or what to try since I cant seem to get an actionable error to work against. I have also reduced by test code to the point where its just a new project with a one line change to make it easier to find the problem.
I should note the code in the repo builds fine in linux/OSX and loads into chrome correctly so I know at some level my code does work.
Two possible paths:
You may have a DLL dependency that isn't available which keeps the plugin from loading; if you run regsvr32 on it in the state where it doesn't work on chrome, does it work?
Your plugin may be loading and then crashing. Start chrome with --plugin-startup-dialog and then when it pops up a dialog warning you that a plugin is about to be loaded attach to that process and see if the process crashes. At this point you can also set breakpoints to try to figure out how far it gets.
Double check your metadata in PluginConfig.cmake as well; sometimes unusual characters in some fields can cause issues like this.
I'm developing extension for Firefox which calls XPCOM component writen in C++ and I get this error:
[Exception... "Component returned failure code: 0x80570016
(NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]" nsresult: "0x80570016
(NS_ERROR_XPC_GS_RETURNED_FAILURE)" location: "JS frame ::
chrome://testtest/content/mytest.js :: loadTestPage :: line 128" data: no]
When I try to execute this code from java script:
cid = '#myCompany.com/MyComponent;1';
obj = Components.classes[cid].getService(Components.interfaces.IMyComponent);
Does anybody know what this error code means?
This error occures only on few machines running Vista (both x86 and x64) running FF 3.5.2 (32-bits official build, even after FF is reinstalled and new profiles are created), on other platforms it is working. XPCOM component is compiled with Visual C++ 2008 (sp1).
I tried to delete compreg.dat and xpti.dat and it doesn't work, I also tried to create new profile and then install extension again but still I get the same error.
I know for a fact that Firefox successfully loads my XPCOM component and that component is working, because I can access and use it from another component written in javascript.
Evaluating from error console also works.
Expression:
Components.classes['#myCompany.com/MyComponent;1'].getService(
Components.interfaces.IMyComponent);
returns:
[xpconnect wrapped IMyComponent]
Thanks!
It's also possible that you're trying to call .getService while you're still in the middle of component registration. You should not try to create any external components during registration, because they may not be registered or completely available yet.
The error means that your component threw during the getService call.