Can't get SCS_GetNewFeatures to work in SourceControl Extension (DW CS4)
I am writing a source control extension, and can't get the SCS_GetNewFeatures to work. SCS_GetNewFeatures gets called, but the call backs I register don't. I can't find my menu anywhere.
Any help would be appreciated. Here is my SCS_GetNewFeatures implementation, and call back functions:
bool SCS_GetNewFeatures(char menuItemList [][32], scFunction functionList [], scFunction enablerList [], const int numNewFeatures)
bool rtVal = true;
for (int i = 0; i < numNewFeatures; i++)
if (i == 0)
strncpy(menuItemList[i],"Testing", 32);
functionList[i] = (scFunction)TestingFunc;
enablerList[i] = (scFunction)EnableTestingFunc;
return rtVal;
bool TestingFunc(void *connectionData, const char *remotePathList[],
const char *localPathList[], const int numItems)
MessageBox(NULL, L"Testing",L"Testing", IDOK);
return true;
bool EnableTestingFunc(void *connectionData, const char *remotePathList[],
const char *localPathList[], const int numItems)
return true;
I'm not sure I understand your response. My understanding of the way to add additional functionality to the Source Control interface, is to implement SCS_GetNewFeatures, where the implementation registers enabler and action functions, along with a menu. My code is doing this. SCS_GetNewFeatures is getting called, but I don't see the new menu (Testing) anywhere (I may not be looking in the correct spot, although I have looked in most of the menus), and the menu enabler function (EnableTestingFunc) isn't getting called (I have put a break point in the function).
I don't understand what you mean by not passing anything to my function call - I'm not who calls TestingFunc and EnableTestingFunc - DW does, passing the necessary parameters. I just need to make sure that my functions match the function template for scFunction (defined on the mentioned page of the api reference).
I'm looking for help in figuring out why my registered callbacks (TestingFunc and EnableTestingFunc) aren't getting called, and why my menu (Testing) isn't showing anywhere. I figure I am missing something basic, or doing something obiously wrong.
This is simply testing code to get the basic functionality working. Once I get that far, I will put in real code to do what really needs to be done. It should show a menu (always enabled), that when clicked, shows an dialog box (at this point using a Windows API call)
If you have a working sample of this kind of code, I would love to see it.
Similar Messages
-
Have entrourage and want to use Mail. Can't get it to work.
I had a macbook and purchased the Microsoft office for Mac which included Entrourage.
I have now purchased a new macbook Pro and want to begin to use Mail rather than Entrourage.
I have Entrourage on my new computer but i can't get it to transfer my information to the the Mail program
I am on Charter.net at my office and sbcglobal.net at home.
How can i get this to work. I can receive on Mail, but i can't send.check your outgoing port settings and make sure it's using a specific port and not the default port, also you might want to check to see if it is using SSL, TLS or any other encryption. Verify the setting from your old machine setup.
-
got my password wrong twice and my mini is disable. I connected to iTunes, but can't get it to work. Can some one guide my through?
If it's showing the red disabled screen due to incorrect passcodes then you may need to put the iPad into recovery mode : http://support.apple.com/kb/ht1808 - you should then be able to reset the iPad via your computer's iTunes and restore/resync your content to it
-
HT1151 i have a new apple external dvd drive, and i can't get it to work with my iMac?
I have a new apple dvd drive, I was told it will work with my imac, but when i plug it in ...nothing... iv been for update... still nothing. How can i get it to work???
If it is this drive, note that it is for MBA's and Mini's only:
http://store.apple.com/us/product/MC684ZM/A
Ciao. -
Is there a way to reset my messages account, I can't get iMessage to work on IPad nor Mac osx. Help please this is really frustrating.
Hi,
Is there an iPhone involved ?
If not, what happens if you remove the Apple ID on the iPad and then set it in Airplane Mode (allow a couple of minutes at this point) followed by re-adding the Apple ID ?
What, if any error messages are appearing on the Mac when you try to launch the App or Login to the iMessages server ?
Is the Apple ID linked to an iCloud account ?
In Messages 7 (Mountain Lion) this did not seem to be important but it seems it is in Mavericks/Messages 8
9:14 pm Friday; April 11, 2014
iMac 2.5Ghz i5 2011 (Mavericks 10.9)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad -
I bought an IR receiver and an Apple Remote, and I can't get it to work. What am I doing wrong? The receiver is a Lenovo eHome OVU430006/01 USB IR Receiver.
Hello,
You would need to pair the Apple Remote with the receiver. So I would use the generic Mac/PC receiver and follow these instructions:
http://support.apple.com/kb/HT1619
If that doesn't work then check in System Profiler to see if the IR receiver has been recognized by the PowerBook's hardware. You may require the install of drivers for this device to be recognized.
Best of luck -
I have a go daddy email account and I can't get it to work on my iPad
I have a go daddy email account and I can't get it to work on my iPad
Try turning the email account off and then turn it on again. Settings>Mail, Contacts, Calendars>select your gmail account>Off. Go to the mail app and then come back to the account in the settings and turn it on again.
If you can't find any other way for the iPad to accept the password, delete the email account and then add it back onto the iPad. -
I have a Mac Mini and I can't get it to work with my Ricoh Aficio MP 161. Any ideas?
I have a Mac Mini and I can't get it to work with my Ricoh Aficio MP 161. Any ideas?
The latest Apple driver support begins with the MP 171.
Here is Ricoh's official driver download page specifically for the Afico MP 161. Note that new drivers for this device were released on Aug 2, and include Lion and Mountain Lion.
Hopefully, this will solve your device issues. -
Iphone 5 went black. Tried pushing on/off and circle at the same time. Worked yesterday and then did it again today. Can't get it to work.
You need to hold those button longer until you see the apple logo, then release, then wait for the phone to boot back up.
-
I just bought a new computer and had files transferred along with itunes to the new computer. I can't get it to work. It doesn't recognize the extensions for itunes. I also tried downloading Quicktime and couldn't get it to download.
iOS: Device not recognized in iTunes for Windows
I would start with:
Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7 -
I bought a DATAPILOT to transfer pictures to my macbook and can't get it to work. Any suggestions please?
Best if you try and explain what you are trying to acheive.
Iphoto is a different paradigm than you're used to. I don't understand why you are trying to transfer your edited photos back to an external disk.
There are tutorials here
http://www.apple.com/findouthow/photos/
Regards
TD -
I have signed up for adobe conversion to microsoft word and i can't get it to work - can you help me
I have signed up for adobe conversion to microsoft word and I can not get it to work - can you help me?
Hi Mike,
I've checked your account. I see that you just purchased the subscription this morning. The order is still pending processing, which is why you haven't yet been able to log in an use your subscription. It can take 24-48 hours for a subscription to process fully. Once it does, you'll be able to log in and convert files.
I apologize for the inconvenience.
Best,
Sara -
Trying to connect 2010 Mac mini to alba hd tv but can't get it to work, any theories?
Trying to connect 2010 Mac mini to alba hd tv but can't get it to work, any theories?
Welcome to the Apple Community.
The iPad 1 is only able to do basic AirPlay, many providers of programming have blocked their apps from working with AirPlay. -
I just bought Quick time Pro and I can't get it to install. It shows a yellow box in my application folder, but I can't get it to work. Help!
you launch QT then go to its REGISTRATION
-
Downloaded the App Sales Call Manager. I can't get it to work on either my Iphone 4s or my Ipad2? Can anybody advise how to fix or even get back my money that i paid for it?
Contact the app developer for support. A link to their website will be in the apps description in the AppStore.
Maybe you are looking for
-
How to delete the last "\n" ??
Hey! I have a string with alot of "\n" within it, how can i only delete or substring or something to get rid of the last appreared "\n" ? I generates a text dokument like: hi "\n" hi "\n" hi "\n" Dont want the last one "\n" here!! Can i do that with
-
For preparing 1Z0-051 exam, where can i get the practice questions fro each topic in the book recommended by Oracle.As the questions in the book are too easy as compared to the question that comes in exam. Please reply
-
Hi, We are on Ecc6, Ehp4 and activated the BCS part of FM. The scenario is we have to issue multi year purhcase order to our vendors. Now to issue that we have to have budget in the future years and for system to check that I want to make Payment Bu
-
My color picker in elements 8 is not working
When I pick a color with the color picker on Photoshop Elements 8 and I click OK, no matter what color I pick it shows gray. What is wrong??
-
Uploading the sales order using BAPI
hi experts, i want to upload the sales order using BAPI. can you provide the FM. it will be much helpful if i have the sample code........ thanks